aboutsummaryrefslogtreecommitdiff
path: root/crypto/ct/ct_vfy.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-04-03 16:25:18 +0100
committerMatt Caswell <matt@openssl.org>2020-04-09 14:51:48 +0100
commitd4b2bfbadecd64de298d37ef6eb90a829da01a6a (patch)
tree9a4f8f90e5ace759073f977e6b1f1c9cadd88426 /crypto/ct/ct_vfy.c
parent76e23fc50b2dcf9b4d33824102ce5ae03f8faea3 (diff)
downloadopenssl-d4b2bfbadecd64de298d37ef6eb90a829da01a6a.zip
openssl-d4b2bfbadecd64de298d37ef6eb90a829da01a6a.tar.gz
openssl-d4b2bfbadecd64de298d37ef6eb90a829da01a6a.tar.bz2
Make the CT code library context aware
Add the new functions CTLOG_STORE_new_with_libctx(), CTLOG_new_with_libctx() and CTLOG_new_from_base64_with_libctx() to pass in the library context/property query string to use a library context is to be used. We also add the function CT_POLICY_EVAL_CTX_new_with_libctx() to enable the creation of a CT_POLICY_EVAL_CTX to be associated with a libctx and property query string. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11483)
Diffstat (limited to 'crypto/ct/ct_vfy.c')
-rw-r--r--crypto/ct/ct_vfy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ct/ct_vfy.c b/crypto/ct/ct_vfy.c
index f206edd..1a14324 100644
--- a/crypto/ct/ct_vfy.c
+++ b/crypto/ct/ct_vfy.c
@@ -122,7 +122,8 @@ int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct)
if (ctx == NULL)
goto end;
- if (!EVP_DigestVerifyInit(ctx, NULL, EVP_sha256(), NULL, sctx->pkey))
+ if (!EVP_DigestVerifyInit_ex(ctx, NULL, "SHA2-256", sctx->propq, sctx->pkey,
+ sctx->libctx))
goto end;
if (!sct_ctx_update(ctx, sctx, sct))