aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-05-24 17:52:17 +0100
committerMatt Caswell <matt@openssl.org>2019-06-17 15:32:54 +0100
commit72592b866492b84ba5ca1251d1a45875764c7b27 (patch)
tree9dc9caaed0e18026f87ab681de307b39f1e66dcc /crypto/include
parent242f84d06aca7030b2bd52043c39b0cb80c4fec6 (diff)
downloadopenssl-72592b866492b84ba5ca1251d1a45875764c7b27.tar.gz
Split thread intialisation and handling out of init.c
We're going to need some of these functions in the FIPS module, but most of the rest of the code in init.c is not needed. Therefore we split it out. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9040)
Diffstat (limited to 'crypto/include')
-rw-r--r--crypto/include/internal/cryptlib_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/include/internal/cryptlib_int.h b/crypto/include/internal/cryptlib_int.h
index b3529dcaf9..e810ef02eb 100644
--- a/crypto/include/internal/cryptlib_int.h
+++ b/crypto/include/internal/cryptlib_int.h
@@ -14,6 +14,8 @@
typedef void (*ossl_thread_stop_handler_fn)(OPENSSL_CTX *ctx);
int ossl_init_thread_start(OPENSSL_CTX *ctx,
ossl_thread_stop_handler_fn handfn);
+int init_thread(void);
+void cleanup_thread(void);
/*
* OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below