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/context.c | |
parent | e41faf5784382a5d2bc23abebcf81b9f4708f6ec (diff) |
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/context.c')
-rw-r--r-- | crypto/context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/context.c b/crypto/context.c index d441c8b4e5..cc1ec0e664 100644 --- a/crypto/context.c +++ b/crypto/context.c @@ -7,7 +7,7 @@ * https://www.openssl.org/source/license.html */ -#include "internal/cryptlib.h" +#include "internal/cryptlib_int.h" #include "internal/thread_once.h" struct openssl_ctx_onfree_list_st { @@ -80,6 +80,8 @@ static int context_deinit(OPENSSL_CTX *ctx) if (ctx == NULL) return 1; + ossl_ctx_thread_stop(ctx); + onfree = ctx->onfreelist; while (onfree != NULL) { onfree->fn(ctx); |