Make the CT code library context aware
authorMatt Caswell <matt@openssl.org>
Fri, 3 Apr 2020 15:25:18 +0000 (16:25 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 9 Apr 2020 13:51:48 +0000 (14:51 +0100)
commitd4b2bfbadecd64de298d37ef6eb90a829da01a6a
tree9a4f8f90e5ace759073f977e6b1f1c9cadd88426
parent76e23fc50b2dcf9b4d33824102ce5ae03f8faea3
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)
crypto/ct/ct_b64.c
crypto/ct/ct_local.h
crypto/ct/ct_log.c
crypto/ct/ct_policy.c
crypto/ct/ct_sct.c
crypto/ct/ct_sct_ctx.c
crypto/ct/ct_vfy.c
include/openssl/ct.h
util/libcrypto.num