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>
(cherry picked from commit 1499b38aef)
This commit is contained in:
Jan-Niklas Burfeind
2018-08-09 11:00:00 +02:00
committed by Andreas Schneider
parent c977a97093
commit f3f140e65f
2 changed files with 25 additions and 1 deletions

View File

@@ -444,7 +444,8 @@ LIBSSH_API int ssh_get_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,