aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorJan-Niklas Burfeind <libssh@aiyionpri.me>2018-08-09 11:00:00 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-09 10:16:20 +0200
commit9c62d6dfcd798d28895f5dd1b76a28524bcf18d3 (patch)
tree826c42b16be25b751c5ea6a51f39e33f3cc8f0c0 /include/libssh
parentf3f140e65f0e58fc37b04dbe4173d6ecda0127ac (diff)
downloadlibssh-9c62d6dfcd798d28895f5dd1b76a28524bcf18d3.tar.gz
libssh-9c62d6dfcd798d28895f5dd1b76a28524bcf18d3.tar.xz
libssh-9c62d6dfcd798d28895f5dd1b76a28524bcf18d3.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> (cherry picked from commit f32cb706752d8dc35ad53a64f51e432cc0bc41cd)
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 320dc032..f6cce1e4 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -564,6 +564,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);