diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-09-02 15:45:41 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-10-09 10:16:27 +0200 |
commit | 7a7c0a54bc24391fcff0aaccd983de621cb3e60d (patch) | |
tree | 77763027915e38e1ede9db2df641a02b8a21ec9e /include | |
parent | 9c62d6dfcd798d28895f5dd1b76a28524bcf18d3 (diff) | |
download | libssh-7a7c0a54bc24391fcff0aaccd983de621cb3e60d.tar.gz libssh-7a7c0a54bc24391fcff0aaccd983de621cb3e60d.tar.xz libssh-7a7c0a54bc24391fcff0aaccd983de621cb3e60d.zip |
dh: Add ssh_get_fingerprint_hash()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit bbed139ecab26cb46b0bb3a21fa4cd2a4f12dadd)
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index f6cce1e4..7f59abe4 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -564,6 +564,9 @@ LIBSSH_API int ssh_pki_export_pubkey_file(const ssh_key key, LIBSSH_API const char *ssh_pki_key_ecdsa_name(const ssh_key key); +LIBSSH_API char *ssh_get_fingerprint_hash(enum ssh_publickey_hash_type type, + unsigned char *hash, + size_t len); LIBSSH_API void ssh_print_hash(enum ssh_publickey_hash_type type, unsigned char *hash, size_t len); LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len); LIBSSH_API int ssh_send_ignore (ssh_session session, const char *data); |