diff options
author | Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com> | 2020-10-15 12:55:50 +0300 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-10-15 12:00:21 +0100 |
commit | a829b735b645516041b55746e013692babd8cd31 (patch) | |
tree | dcc8bd43fe6eb5b1893ce77b73090bd4e6b5c4b1 /providers/implementations/signature | |
parent | b425001010044adbdbcd98f8682694b30b73bbf4 (diff) |
Rename some occurrences of 'library_context' and 'lib_ctx' to 'libctx'
This change makes the naming more consistent, because three different terms
were used for the same thing. (The term libctx was used by far most often.)
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 'providers/implementations/signature')
-rw-r--r-- | providers/implementations/signature/dsa.c | 2 | ||||
-rw-r--r-- | providers/implementations/signature/ecdsa.c | 2 | ||||
-rw-r--r-- | providers/implementations/signature/eddsa.c | 2 | ||||
-rw-r--r-- | providers/implementations/signature/mac_legacy.c | 4 | ||||
-rw-r--r-- | providers/implementations/signature/rsa.c | 2 | ||||
-rw-r--r-- | providers/implementations/signature/sm2sig.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/providers/implementations/signature/dsa.c b/providers/implementations/signature/dsa.c index b5683f3048..a1621acf62 100644 --- a/providers/implementations/signature/dsa.c +++ b/providers/implementations/signature/dsa.c @@ -108,7 +108,7 @@ static void *dsa_newctx(void *provctx, const char *propq) if (pdsactx == NULL) return NULL; - pdsactx->libctx = PROV_LIBRARY_CONTEXT_OF(provctx); + pdsactx->libctx = PROV_LIBCTX_OF(provctx); pdsactx->flag_allow_md = 1; if (propq != NULL && (pdsactx->propq = OPENSSL_strdup(propq)) == NULL) { OPENSSL_free(pdsactx); diff --git a/providers/implementations/signature/ecdsa.c b/providers/implementations/signature/ecdsa.c index 13f1defff9..b956917e49 100644 --- a/providers/implementations/signature/ecdsa.c +++ b/providers/implementations/signature/ecdsa.c @@ -107,7 +107,7 @@ static void *ecdsa_newctx(void *provctx, const char *propq) if (ctx == NULL) return NULL; - ctx->libctx = PROV_LIBRARY_CONTEXT_OF(provctx); + ctx->libctx = PROV_LIBCTX_OF(provctx); if (propq != NULL && (ctx->propq = OPENSSL_strdup(propq)) == NULL) { OPENSSL_free(ctx); ctx = NULL; diff --git a/providers/implementations/signature/eddsa.c b/providers/implementations/signature/eddsa.c index 29d7e08cd1..dbec8e6040 100644 --- a/providers/implementations/signature/eddsa.c +++ b/providers/implementations/signature/eddsa.c @@ -57,7 +57,7 @@ static void *eddsa_newctx(void *provctx, const char *propq_unused) return NULL; } - peddsactx->libctx = PROV_LIBRARY_CONTEXT_OF(provctx); + peddsactx->libctx = PROV_LIBCTX_OF(provctx); return peddsactx; } diff --git a/providers/implementations/signature/mac_legacy.c b/providers/implementations/signature/mac_legacy.c index 60ca0f4cb3..12a78b7ea4 100644 --- a/providers/implementations/signature/mac_legacy.c +++ b/providers/implementations/signature/mac_legacy.c @@ -55,7 +55,7 @@ static void *mac_newctx(void *provctx, const char *propq, const char *macname) if (pmacctx == NULL) return NULL; - pmacctx->libctx = PROV_LIBRARY_CONTEXT_OF(provctx); + pmacctx->libctx = PROV_LIBCTX_OF(provctx); if (propq != NULL && (pmacctx->propq = OPENSSL_strdup(propq)) == NULL) { ERR_raise(ERR_LIB_PROV, ERR_R_MALLOC_FAILURE); goto err; @@ -200,7 +200,7 @@ static int mac_set_ctx_params(void *vpmacctx, const OSSL_PARAM params[]) static const OSSL_PARAM *mac_settable_ctx_params(void *provctx, const char *macname) { - EVP_MAC *mac = EVP_MAC_fetch(PROV_LIBRARY_CONTEXT_OF(provctx), macname, + EVP_MAC *mac = EVP_MAC_fetch(PROV_LIBCTX_OF(provctx), macname, NULL); const OSSL_PARAM *params; diff --git a/providers/implementations/signature/rsa.c b/providers/implementations/signature/rsa.c index 9bcc071a72..b463f03d7f 100644 --- a/providers/implementations/signature/rsa.c +++ b/providers/implementations/signature/rsa.c @@ -170,7 +170,7 @@ static void *rsa_newctx(void *provctx, const char *propq) return NULL; } - prsactx->libctx = PROV_LIBRARY_CONTEXT_OF(provctx); + prsactx->libctx = PROV_LIBCTX_OF(provctx); prsactx->flag_allow_md = 1; prsactx->propq = propq_copy; return prsactx; diff --git a/providers/implementations/signature/sm2sig.c b/providers/implementations/signature/sm2sig.c index ddbc1fced8..6bd27d9d38 100644 --- a/providers/implementations/signature/sm2sig.c +++ b/providers/implementations/signature/sm2sig.c @@ -102,7 +102,7 @@ static void *sm2sig_newctx(void *provctx, const char *propq) if (ctx == NULL) return NULL; - ctx->libctx = PROV_LIBRARY_CONTEXT_OF(provctx); + ctx->libctx = PROV_LIBCTX_OF(provctx); if (propq != NULL && (ctx->propq = OPENSSL_strdup(propq)) == NULL) { OPENSSL_free(ctx); ctx = NULL; |