Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5520)
}
if (!ret->ameth->set_priv_key(ret, priv, len)) {
- /* We assume the method function calls EVPerr */
+ EVPerr(EVP_F_EVP_PKEY_NEW_PRIVATE_KEY, EVP_R_KEY_SETUP_FAILED);
goto err;
}
}
if (!ret->ameth->set_pub_key(ret, pub, len)) {
- /* We assume the method function calls EVPerr */
+ EVPerr(EVP_F_EVP_PKEY_NEW_PUBLIC_KEY, EVP_R_KEY_SETUP_FAILED);
goto err;
}