diff options
author | Matt Caswell <matt@openssl.org> | 2023-09-25 16:44:47 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-10-03 18:54:03 +1100 |
commit | 6b3f7f0b28afc3e25ce505e5fde2d9f2b50cdb9e (patch) | |
tree | 5436342c0d94876eb85a340b1477ae4468fb05b2 /include | |
parent | 354053395fbd20e5efb584427b5da9be9231fd93 (diff) |
Fix a mem leak when the FIPS provider is used in a different thread
We were neglecting to register the main thread to receive thread stop
notifications. This is important if the thread that starts the FIPS
provider is not the same one that is used when OPENSSL_cleanup() is
called.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22210)
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/context.h b/include/crypto/context.h index cc06c71be8..213e368648 100644 --- a/include/crypto/context.h +++ b/include/crypto/context.h @@ -21,6 +21,7 @@ void *ossl_child_prov_ctx_new(OSSL_LIB_CTX *); void *ossl_prov_drbg_nonce_ctx_new(OSSL_LIB_CTX *); void *ossl_self_test_set_callback_new(OSSL_LIB_CTX *); void *ossl_rand_crng_ctx_new(OSSL_LIB_CTX *); +int ossl_thread_register_fips(OSSL_LIB_CTX *); void *ossl_thread_event_ctx_new(OSSL_LIB_CTX *); void *ossl_fips_prov_ossl_ctx_new(OSSL_LIB_CTX *); |