diff options
author | Jan-Niklas Burfeind <libssh@aiyionpri.me> | 2018-08-09 11:00:00 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-29 19:04:44 +0200 |
commit | f32cb706752d8dc35ad53a64f51e432cc0bc41cd (patch) | |
tree | 9eaa48f2a3ae9137987851e7c181410d1102168f /include | |
parent | 1499b38aef17beac8b438522535daf428600d529 (diff) | |
download | libssh-f32cb706752d8dc35ad53a64f51e432cc0bc41cd.tar.gz libssh-f32cb706752d8dc35ad53a64f51e432cc0bc41cd.tar.xz libssh-f32cb706752d8dc35ad53a64f51e432cc0bc41cd.zip |
dh: Add ssh_print_hash() function which can deal with sha256
Signed-off-by: Jan-Niklas Burfeind <libssh@aiyionpri.me>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 1873713f..01e0a138 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -681,6 +681,7 @@ 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 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); LIBSSH_API int ssh_send_debug (ssh_session session, const char *message, int always_display); |