mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
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:
parent
eabb301416
commit
3352dc185f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user