diff options
author | Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com> | 2020-10-15 11:55:50 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-10-15 12:59:53 +0200 |
commit | b425001010044adbdbcd98f8682694b30b73bbf4 (patch) | |
tree | e87a5b512d7869cb6a500ecc74b706281be762cf /crypto/ct | |
parent | Make evp_pkey_ctx_get0_libctx/propq public API (diff) | |
download | openssl-b425001010044adbdbcd98f8682694b30b73bbf4.tar.xz openssl-b425001010044adbdbcd98f8682694b30b73bbf4.zip |
Rename OPENSSL_CTX prefix to OSSL_LIB_CTX
Many of the new types introduced by OpenSSL 3.0 have an OSSL_ prefix,
e.g., OSSL_CALLBACK, OSSL_PARAM, OSSL_ALGORITHM, OSSL_SERIALIZER.
The OPENSSL_CTX type stands out a little by using a different prefix.
For consistency reasons, this type is renamed to OSSL_LIB_CTX.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12621)
Diffstat (limited to 'crypto/ct')
-rw-r--r-- | crypto/ct/ct_b64.c | 2 | ||||
-rw-r--r-- | crypto/ct/ct_local.h | 6 | ||||
-rw-r--r-- | crypto/ct/ct_log.c | 8 | ||||
-rw-r--r-- | crypto/ct/ct_policy.c | 2 | ||||
-rw-r--r-- | crypto/ct/ct_sct_ctx.c | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/crypto/ct/ct_b64.c b/crypto/ct/ct_b64.c index 575524e1db..5e80e4e44b 100644 --- a/crypto/ct/ct_b64.c +++ b/crypto/ct/ct_b64.c @@ -133,7 +133,7 @@ SCT *SCT_new_from_base64(unsigned char version, const char *logid_base64, * -1 on internal (malloc) failure */ int CTLOG_new_from_base64_ex(CTLOG **ct_log, const char *pkey_base64, - const char *name, OPENSSL_CTX *libctx, + const char *name, OSSL_LIB_CTX *libctx, const char *propq) { unsigned char *pkey_der = NULL; diff --git a/crypto/ct/ct_local.h b/crypto/ct/ct_local.h index eef4c193de..a7573c97bb 100644 --- a/crypto/ct/ct_local.h +++ b/crypto/ct/ct_local.h @@ -101,7 +101,7 @@ struct sct_ctx_st { /* milliseconds since epoch (to check that the SCT isn't from the future) */ uint64_t epoch_time_in_ms; - OPENSSL_CTX *libctx; + OSSL_LIB_CTX *libctx; char *propq; }; @@ -113,14 +113,14 @@ struct ct_policy_eval_ctx_st { /* milliseconds since epoch (to check that SCTs aren't from the future) */ uint64_t epoch_time_in_ms; - OPENSSL_CTX *libctx; + OSSL_LIB_CTX *libctx; char *propq; }; /* * Creates a new context for verifying an SCT. */ -SCT_CTX *SCT_CTX_new(OPENSSL_CTX *ctx, const char *propq); +SCT_CTX *SCT_CTX_new(OSSL_LIB_CTX *ctx, const char *propq); /* * Deletes an SCT verification context. */ diff --git a/crypto/ct/ct_log.c b/crypto/ct/ct_log.c index 9a32054c41..11fc9d4367 100644 --- a/crypto/ct/ct_log.c +++ b/crypto/ct/ct_log.c @@ -22,7 +22,7 @@ * Information about a CT log server. */ struct ctlog_st { - OPENSSL_CTX *libctx; + OSSL_LIB_CTX *libctx; char *propq; char *name; uint8_t log_id[CT_V1_HASHLEN]; @@ -34,7 +34,7 @@ struct ctlog_st { * It takes ownership of any CTLOG instances added to it. */ struct ctlog_store_st { - OPENSSL_CTX *libctx; + OSSL_LIB_CTX *libctx; char *propq; STACK_OF(CTLOG) *logs; }; @@ -100,7 +100,7 @@ err: return ret; } -CTLOG_STORE *CTLOG_STORE_new_ex(OPENSSL_CTX *libctx, const char *propq) +CTLOG_STORE *CTLOG_STORE_new_ex(OSSL_LIB_CTX *libctx, const char *propq) { CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret)); @@ -264,7 +264,7 @@ end: * Takes ownership of the public key. * Copies the name. */ -CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name, OPENSSL_CTX *libctx, +CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name, OSSL_LIB_CTX *libctx, const char *propq) { CTLOG *ret = OPENSSL_zalloc(sizeof(*ret)); diff --git a/crypto/ct/ct_policy.c b/crypto/ct/ct_policy.c index 268ef22b58..a33c618cf5 100644 --- a/crypto/ct/ct_policy.c +++ b/crypto/ct/ct_policy.c @@ -25,7 +25,7 @@ */ static const time_t SCT_CLOCK_DRIFT_TOLERANCE = 300; -CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new_ex(OPENSSL_CTX *libctx, +CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new_ex(OSSL_LIB_CTX *libctx, const char *propq) { CT_POLICY_EVAL_CTX *ctx = OPENSSL_zalloc(sizeof(CT_POLICY_EVAL_CTX)); diff --git a/crypto/ct/ct_sct_ctx.c b/crypto/ct/ct_sct_ctx.c index ad7b6e6f93..8e4dfd2377 100644 --- a/crypto/ct/ct_sct_ctx.c +++ b/crypto/ct/ct_sct_ctx.c @@ -20,7 +20,7 @@ #include "ct_local.h" -SCT_CTX *SCT_CTX_new(OPENSSL_CTX *libctx, const char *propq) +SCT_CTX *SCT_CTX_new(OSSL_LIB_CTX *libctx, const char *propq) { SCT_CTX *sctx = OPENSSL_zalloc(sizeof(*sctx)); |