Provide a thread stop API

Add the OPENSSL_INIT_thread_stop() function.

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Matt Caswell 2016-02-09 09:13:45 +00:00
parent 8793f012f1
commit 71567a6f41
4 changed files with 11 additions and 4 deletions

View file

@ -234,8 +234,7 @@ 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));
OPENSSL_INIT_thread_stop();
break;
case DLL_PROCESS_DETACH:
break;