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 11:59:53 +0100 |
commit | b425001010044adbdbcd98f8682694b30b73bbf4 (patch) | |
tree | e87a5b512d7869cb6a500ecc74b706281be762cf /crypto/dh | |
parent | 29000e43ea257bf54f6ccb2064b3744853b821b2 (diff) |
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/dh')
-rw-r--r-- | crypto/dh/dh_ameth.c | 2 | ||||
-rw-r--r-- | crypto/dh/dh_gen.c | 2 | ||||
-rw-r--r-- | crypto/dh/dh_group_params.c | 6 | ||||
-rw-r--r-- | crypto/dh/dh_kdf.c | 4 | ||||
-rw-r--r-- | crypto/dh/dh_lib.c | 6 | ||||
-rw-r--r-- | crypto/dh/dh_local.h | 2 | ||||
-rw-r--r-- | crypto/dh/dh_pmeth.c | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c index 9ad75d2092..69b166362a 100644 --- a/crypto/dh/dh_ameth.c +++ b/crypto/dh/dh_ameth.c @@ -479,7 +479,7 @@ static size_t dh_pkey_dirty_cnt(const EVP_PKEY *pkey) } static int dh_pkey_export_to(const EVP_PKEY *from, void *to_keydata, - EVP_KEYMGMT *to_keymgmt, OPENSSL_CTX *libctx, + EVP_KEYMGMT *to_keymgmt, OSSL_LIB_CTX *libctx, const char *propq) { DH *dh = from->pkey.dh; diff --git a/crypto/dh/dh_gen.c b/crypto/dh/dh_gen.c index 1e84db9527..8ed7120653 100644 --- a/crypto/dh/dh_gen.c +++ b/crypto/dh/dh_gen.c @@ -91,7 +91,7 @@ int dh_get_named_group_uid_from_size(int pbits) #ifdef FIPS_MODULE -static int dh_gen_named_group(OPENSSL_CTX *libctx, DH *ret, int prime_len) +static int dh_gen_named_group(OSSL_LIB_CTX *libctx, DH *ret, int prime_len) { DH *dh; int ok = 0; diff --git a/crypto/dh/dh_group_params.c b/crypto/dh/dh_group_params.c index b91a76bd97..d0b53a2f8b 100644 --- a/crypto/dh/dh_group_params.c +++ b/crypto/dh/dh_group_params.c @@ -100,7 +100,7 @@ const char *ossl_ffc_named_group_from_uid(int uid) return NULL; } -static DH *dh_param_init(OPENSSL_CTX *libctx, int uid, const BIGNUM *p, +static DH *dh_param_init(OSSL_LIB_CTX *libctx, int uid, const BIGNUM *p, const BIGNUM *q, const BIGNUM *g) { DH *dh = dh_new_ex(libctx); @@ -117,7 +117,7 @@ static DH *dh_param_init(OPENSSL_CTX *libctx, int uid, const BIGNUM *p, return dh; } -static DH *dh_new_by_group_name(OPENSSL_CTX *libctx, const char *name) +static DH *dh_new_by_group_name(OSSL_LIB_CTX *libctx, const char *name) { int i; @@ -136,7 +136,7 @@ static DH *dh_new_by_group_name(OPENSSL_CTX *libctx, const char *name) return NULL; } -DH *dh_new_by_nid_ex(OPENSSL_CTX *libctx, int nid) +DH *dh_new_by_nid_ex(OSSL_LIB_CTX *libctx, int nid) { const char *name = ossl_ffc_named_group_from_uid(nid); diff --git a/crypto/dh/dh_kdf.c b/crypto/dh/dh_kdf.c index 6f59d6ecc2..67c19a5ff6 100644 --- a/crypto/dh/dh_kdf.c +++ b/crypto/dh/dh_kdf.c @@ -29,7 +29,7 @@ int dh_KDF_X9_42_asn1(unsigned char *out, size_t outlen, const unsigned char *Z, size_t Zlen, const char *cek_alg, const unsigned char *ukm, size_t ukmlen, const EVP_MD *md, - OPENSSL_CTX *libctx, const char *propq) + OSSL_LIB_CTX *libctx, const char *propq) { int ret = 0; EVP_KDF_CTX *kctx = NULL; @@ -69,7 +69,7 @@ int DH_KDF_X9_42(unsigned char *out, size_t outlen, int nid; const char *key_alg = NULL; const OSSL_PROVIDER *prov = EVP_MD_provider(md); - OPENSSL_CTX *libctx = ossl_provider_library_context(prov); + OSSL_LIB_CTX *libctx = ossl_provider_library_context(prov); nid = OBJ_obj2nid(key_oid); if (nid == NID_undef) diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c index 793a5af2a0..94978a2cb2 100644 --- a/crypto/dh/dh_lib.c +++ b/crypto/dh/dh_lib.c @@ -24,7 +24,7 @@ #include "crypto/dh.h" #include "dh_local.h" -static DH *dh_new_intern(ENGINE *engine, OPENSSL_CTX *libctx); +static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx); #ifndef FIPS_MODULE int DH_set_method(DH *dh, const DH_METHOD *meth) @@ -63,12 +63,12 @@ DH *DH_new_method(ENGINE *engine) } #endif /* !FIPS_MODULE */ -DH *dh_new_ex(OPENSSL_CTX *libctx) +DH *dh_new_ex(OSSL_LIB_CTX *libctx) { return dh_new_intern(NULL, libctx); } -static DH *dh_new_intern(ENGINE *engine, OPENSSL_CTX *libctx) +static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx) { DH *ret = OPENSSL_zalloc(sizeof(*ret)); diff --git a/crypto/dh/dh_local.h b/crypto/dh/dh_local.h index 51c3f974e1..1ff075e3dc 100644 --- a/crypto/dh/dh_local.h +++ b/crypto/dh/dh_local.h @@ -32,7 +32,7 @@ struct dh_st { CRYPTO_EX_DATA ex_data; ENGINE *engine; #endif - OPENSSL_CTX *libctx; + OSSL_LIB_CTX *libctx; const DH_METHOD *meth; CRYPTO_RWLOCK *lock; diff --git a/crypto/dh/dh_pmeth.c b/crypto/dh/dh_pmeth.c index 9d72fa0959..d0e1c55002 100644 --- a/crypto/dh/dh_pmeth.c +++ b/crypto/dh/dh_pmeth.c @@ -274,7 +274,7 @@ static int pkey_dh_ctrl_str(EVP_PKEY_CTX *ctx, return -2; } -static DH *ffc_params_generate(OPENSSL_CTX *libctx, DH_PKEY_CTX *dctx, +static DH *ffc_params_generate(OSSL_LIB_CTX *libctx, DH_PKEY_CTX *dctx, BN_GENCB *pcb) { DH *ret; |