1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +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

@@ -1812,6 +1812,12 @@ _libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session,
pubkeydata, pubkeydata_len, pk);
break;
#endif /* LIBSSH_DSA */
#if LIBSSH2_ECDSA
case EVP_PKEY_EC :
st = gen_publickey_from_ec_evp(session, method, method_len,
pubkeydata, pubkeydata_len, pk);
break;
#endif
default :
st = _libssh2_error(session,
LIBSSH2_ERROR_FILE,