summaryrefslogtreecommitdiff
path: root/crypto/ct
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-05-25 15:19:56 +0100
committerMatt Caswell <matt@openssl.org>2021-06-08 18:53:28 +0100
commit7834d50fa92c622e3a1b29a38abbbec2afd1290d (patch)
tree7fecafb6fd354613eb6f4ea7ad431fd08d403dd9 /crypto/ct
parenteaf867011edfd9ec0d2ca6bc36b0d17812be7844 (diff)
downloadopenssl-new-7834d50fa92c622e3a1b29a38abbbec2afd1290d.tar.gz
Fix CTLOG_new_from_base64_ex()
Ensure that the libctx/propq are passed to d2i_PUBKEY_ex() Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15504)
Diffstat (limited to 'crypto/ct')
-rw-r--r--crypto/ct/ct_b64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ct/ct_b64.c b/crypto/ct/ct_b64.c
index 8dd137096c..5dae44d5ef 100644
--- a/crypto/ct/ct_b64.c
+++ b/crypto/ct/ct_b64.c
@@ -153,7 +153,7 @@ int CTLOG_new_from_base64_ex(CTLOG **ct_log, const char *pkey_base64,
}
p = pkey_der;
- pkey = d2i_PUBKEY(NULL, &p, pkey_der_len);
+ pkey = d2i_PUBKEY_ex(NULL, &p, pkey_der_len, libctx, propq);
OPENSSL_free(pkey_der);
if (pkey == NULL) {
ERR_raise(ERR_LIB_CT, CT_R_LOG_CONF_INVALID_KEY);