summaryrefslogtreecommitdiff
path: root/include/internal/cryptlib.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-05-27 16:31:27 +0100
committerMatt Caswell <matt@openssl.org>2019-06-17 16:19:44 +0100
commitda747958c5db57dbe22c015d058be9db8a90f8f9 (patch)
tree94eb46b99a0b7b586f7ed7aa1c0fc867d248b337 /include/internal/cryptlib.h
parente41faf5784382a5d2bc23abebcf81b9f4708f6ec (diff)
downloadopenssl-new-da747958c5db57dbe22c015d058be9db8a90f8f9.tar.gz
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 'include/internal/cryptlib.h')
-rw-r--r--include/internal/cryptlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h
index c40bb2601d..f7bd06b539 100644
--- a/include/internal/cryptlib.h
+++ b/include/internal/cryptlib.h
@@ -150,7 +150,8 @@ typedef struct ossl_ex_data_global_st {
# define OPENSSL_CTX_DRBG_NONCE_INDEX 6
# define OPENSSL_CTX_RAND_CRNGT_INDEX 7
# define OPENSSL_CTX_THREAD_EVENT_HANDLER_INDEX 8
-# define OPENSSL_CTX_MAX_INDEXES 9
+# define OPENSSL_CTX_FIPS_PROV_INDEX 9
+# define OPENSSL_CTX_MAX_INDEXES 10
typedef struct openssl_ctx_method {
void *(*new_func)(OPENSSL_CTX *ctx);