diff options
author | Matt Caswell <matt@openssl.org> | 2019-05-27 16:31:27 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-06-17 16:19:44 +0100 |
commit | da747958c5db57dbe22c015d058be9db8a90f8f9 (patch) | |
tree | 94eb46b99a0b7b586f7ed7aa1c0fc867d248b337 /crypto/async | |
parent | e41faf5784382a5d2bc23abebcf81b9f4708f6ec (diff) | |
download | openssl-da747958c5db57dbe22c015d058be9db8a90f8f9.zip openssl-da747958c5db57dbe22c015d058be9db8a90f8f9.tar.gz openssl-da747958c5db57dbe22c015d058be9db8a90f8f9.tar.bz2 |
Tell the FIPS provider about thread stop events
The RAND code needs to know about threads stopping in order to cleanup
local thread data. Therefore we add a callback for libcrypto to tell
providers about such events.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9040)
Diffstat (limited to 'crypto/async')
-rw-r--r-- | crypto/async/async.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/async/async.c b/crypto/async/async.c index 785ed06..bcb0030 100644 --- a/crypto/async/async.c +++ b/crypto/async/async.c @@ -30,7 +30,7 @@ static CRYPTO_THREAD_LOCAL ctxkey; static CRYPTO_THREAD_LOCAL poolkey; -static void async_delete_thread_state(OPENSSL_CTX *ctx); +static void async_delete_thread_state(void *arg); static async_ctx *async_ctx_new(void) { @@ -376,8 +376,8 @@ err: return 0; } -/* OPENSSL_CTX ignored for now */ -static void async_delete_thread_state(OPENSSL_CTX *ctx) +/* TODO(3.0): arg ignored for now */ +static void async_delete_thread_state(void *arg) { async_pool *pool = (async_pool *)CRYPTO_THREAD_get_local(&poolkey); |