1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

Add support for SHA256 hostkey fingerprints (#180)

Looks good, thanks!
This commit is contained in:
Sune Bredahl
2017-05-24 19:15:53 +02:00
committed by Will Cosgrove
parent 97518ca8bd
commit bbc43cb333
4 changed files with 66 additions and 2 deletions

View File

@@ -609,6 +609,9 @@ struct _LIBSSH2_SESSION
unsigned char server_hostkey_sha1[SHA_DIGEST_LENGTH];
int server_hostkey_sha1_valid;
unsigned char server_hostkey_sha256[SHA256_DIGEST_LENGTH];
int server_hostkey_sha256_valid;
/* (remote as source of data -- packet_read ) */
libssh2_endpoint_data remote;