summaryrefslogtreecommitdiffstats
path: root/crypto/store
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-10-26 13:58:30 +0100
committerRichard Levitte <levitte@openssl.org>2020-11-11 11:42:06 +0100
commit4f2abe4378ce561c60674f3ac0642d3fb22da550 (patch)
tree1323103417d4e0a995723bf97a3fa1e5f14398ae /crypto/store
parent2c090c1d1b00fe49dd2911674e26c629f123c44f (diff)
Adapt libcrypto functionality to specify the desired input structure
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13248)
Diffstat (limited to 'crypto/store')
-rw-r--r--crypto/store/store_result.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/store/store_result.c b/crypto/store/store_result.c
index 5848761a5e..96df9d8e14 100644
--- a/crypto/store/store_result.c
+++ b/crypto/store/store_result.c
@@ -255,7 +255,8 @@ static EVP_PKEY *try_key_value(struct extracted_param_data_st *data,
size_t pdatalen = data->octet_data_size;
decoderctx =
- OSSL_DECODER_CTX_new_by_EVP_PKEY(&pk, "DER", NULL, libctx, propq);
+ OSSL_DECODER_CTX_new_by_EVP_PKEY(&pk, NULL, NULL, NULL, 0,
+ libctx, propq);
(void)OSSL_DECODER_CTX_set_passphrase_cb(decoderctx, cb, cbarg);
/* No error if this couldn't be decoded */