Fix merge problem in d2i_PrivateKey_ex

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14243)
This commit is contained in:
Shane Lontis 2021-02-19 19:43:16 +10:00
parent eabb301416
commit 3352dc185f

View File

@ -44,9 +44,9 @@ EVP_PKEY *d2i_PrivateKey_ex(int keytype, EVP_PKEY **a, const unsigned char **pp,
ppkey = a;
for (i = 0; i < (int)OSSL_NELEM(input_structures); ++i) {
dctx = OSSL_DECODER_CTX_new_by_EVP_PKEY(ppkey, "DER",
input_structures[i], key_name,
EVP_PKEY_KEYPAIR, libctx, propq);
dctx = OSSL_DECODER_CTX_new_for_pkey(ppkey, "DER",
input_structures[i], key_name,
EVP_PKEY_KEYPAIR, libctx, propq);
if (dctx == NULL)
return NULL;