From 6913f5fe05a38fa72213b5b5d1f41ef10ca908bd Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 18 Jun 2019 18:37:38 +0100 Subject: Provide an ability to deregister thread stop handlers If a provider gets unloaded then any thread stop handlers that it had registered will be left hanging. We should clean them up before tearing down the provider. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9186) --- crypto/include/internal/cryptlib_int.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/include') diff --git a/crypto/include/internal/cryptlib_int.h b/crypto/include/internal/cryptlib_int.h index a69bdcd408..673a004f0f 100644 --- a/crypto/include/internal/cryptlib_int.h +++ b/crypto/include/internal/cryptlib_int.h @@ -12,8 +12,9 @@ /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */ -int ossl_init_thread_start(void *arg, +int ossl_init_thread_start(const void *index, void *arg, OSSL_thread_stop_handler_fn handfn); +int ossl_init_thread_deregister(void *index); int ossl_init_thread(void); void ossl_cleanup_thread(void); void ossl_ctx_thread_stop(void *arg); -- cgit v1.2.3