1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-01 11:26:53 +03:00

ECDSA key types are now explicit (#251)

* ECDSA key types are now explicit

Issue was brough up in pull request #248
This commit is contained in:
Will Cosgrove
2018-05-04 13:03:15 -07:00
committed by GitHub
parent 930bf09cb4
commit 62b825c8af
6 changed files with 41 additions and 13 deletions

View File

@ -63,7 +63,7 @@ int test(LIBSSH2_SESSION *session)
return 1;
}
if(type == LIBSSH2_HOSTKEY_TYPE_ECDSA) {
if(type == LIBSSH2_HOSTKEY_TYPE_ECDSA_256) {
md5_hash = libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_MD5);
if(md5_hash == NULL) {