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 /CHANGES.md | |
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 'CHANGES.md')
-rw-r--r-- | CHANGES.md | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/CHANGES.md b/CHANGES.md index d9fa56f4d6..4114ce96cf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -112,9 +112,9 @@ OpenSSL 3.0 *Rich Salz and Richard Levitte* - * Added a library context that applications as well as other - libraries can use to form a separate context within which libcrypto - operations are performed. + * Added a library context `OSSL_LIB_CTX` that applications as well as + other libraries can use to form a separate context within which + libcrypto operations are performed. There are two ways this can be used: @@ -122,16 +122,19 @@ OpenSSL 3.0 such an argument, such as `EVP_CIPHER_fetch` and similar algorithm fetching functions. - Indirectly, by creating a new library context and then assigning - it as the new default, with `OPENSSL_CTX_set0_default`. + it as the new default, with `OSSL_LIB_CTX_set0_default`. - All public OpenSSL functions that take an `OPENSSL_CTX` pointer, - apart from the functions directly related to `OPENSSL_CTX`, accept + All public OpenSSL functions that take an `OSSL_LIB_CTX` pointer, + apart from the functions directly related to `OSSL_LIB_CTX`, accept NULL to indicate that the default library context should be used. Library code that changes the default library context using - `OPENSSL_CTX_set0_default` should take care to restore it with a + `OSSL_LIB_CTX_set0_default` should take care to restore it with a second call before returning to the caller. + _(Note: the library context was initially called `OPENSSL_CTX` and + renamed to `OSSL_LIB_CTX` in version 3.0.0 alpha7.)_ + *Richard Levitte* * Handshake now fails if Extended Master Secret extension is dropped |