diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-08 16:43:03 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-02-09 15:11:38 +0000 |
commit | 7b9f8f7f03eda2faa1cdd42ed29a0b70e60eaf59 (patch) | |
tree | 30f805756265bd1d016aead84dcf1c909cca8b4b /crypto/cryptlib.c | |
parent | b184e3ef73200cb3b7914a603b43a5b8a074c85f (diff) | |
download | openssl-7b9f8f7f03eda2faa1cdd42ed29a0b70e60eaf59.tar.gz |
Auto init/deinit libcrypto
This builds on the previous commit to auto initialise/deinitialise
libcrypto.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r-- | crypto/cryptlib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index bd58d35757..138708b867 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -113,7 +113,7 @@ * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. */ -#include "internal/cryptlib.h" +#include "internal/cryptlib_int.h" #include <openssl/safestack.h> #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ @@ -234,6 +234,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: + ossl_init_thread_stop( + (struct thread_local_inits_st *)ossl_init_get_thread_local(0)); break; case DLL_PROCESS_DETACH: break; |