I have a static library using OpenSSL (built as static library with the no-pinshared parameter in the configuration) that is then included in a DLL that gets loaded and unloaded many times by the calling application. Now that the code
is in 1.1.1c to allow me to manually shutdown the OpenSSL library, I’ve run into an issue when loading and unloading my DLL multiple times from the calling application. I am testing this on Windows 10. A summary of what I am doing:
Iterating through the above steps always fails on iteration 1077. OpenSLL reports the error: After some debugging, I see that the failure happens in the function CRYPTO_THREAD_init_local in threads_win.c. *key = TlsAlloc(); fails with the error TLS_OUT_OF_INDEXES.
Is something not being freed? Is there something additional I need to do at shutdown?
|