Merge pull request #2235 from kaleb-himes/ZD-5116

Check appropriate flag for private vs public - Thanks to: E.M.
This commit is contained in:
David Garske
2019-05-13 10:29:48 -07:00
committed by GitHub

View File

@ -29613,7 +29613,7 @@ int wolfSSL_EC_KEY_LoadDer_ex(WOLFSSL_EC_KEY* key, const unsigned char* derBuf,
derSz);
}
if (ret < 0) {
if (opt == WOLFSSL_RSA_LOAD_PRIVATE) {
if (opt == WOLFSSL_EC_KEY_LOAD_PRIVATE) {
WOLFSSL_MSG("wc_EccPrivateKeyDecode failed");
}
else {