aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorJan-Niklas Burfeind <libssh@aiyionpri.me>2018-08-09 11:00:00 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-29 19:04:44 +0200
commit1499b38aef17beac8b438522535daf428600d529 (patch)
tree6dc553177c2a2fc1302e18a99e05f5c47c5b8c61 /include/libssh/libssh.h
parent509331ec818a7251900e42ca96f3e9e4de96e43c (diff)
downloadlibssh-1499b38aef17beac8b438522535daf428600d529.tar.gz
libssh-1499b38aef17beac8b438522535daf428600d529.tar.xz
libssh-1499b38aef17beac8b438522535daf428600d529.zip
dh: Add SSH_PUBLICKEY_HASH_SHA256 to ssh_get_publickey_hash()
Signed-off-by: Jan-Niklas Burfeind <libssh@aiyionpri.me> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 280ba578..1873713f 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -528,7 +528,8 @@ LIBSSH_API int ssh_get_server_publickey(ssh_session session, ssh_key *key);
enum ssh_publickey_hash_type {
SSH_PUBLICKEY_HASH_SHA1,
- SSH_PUBLICKEY_HASH_MD5
+ SSH_PUBLICKEY_HASH_MD5,
+ SSH_PUBLICKEY_HASH_SHA256
};
LIBSSH_API int ssh_get_publickey_hash(const ssh_key key,
enum ssh_publickey_hash_type type,