Should all threads call openssl_thread_stop()?
Matt Caswell
matt at openssl.org
Thu Jan 18 09:32:32 UTC 2024
On 18/01/2024 08:11, Dipak B wrote:
> Should the application which is statically linked to OpenSSL 3.x, call
> OpenSSL_Thread_Stop() for a thread that uses only crypto functionality
> from OpenSSL but not ssl ?
If we're talking about statically linked Windows here then the answer is
"yes". For other platforms the answer is "maybe". In many cases calling
OPENSSL_thread_stop() is not necessary at all - but statically linked
Windows is one case where it is. The conditions around this are
discussed in the NOTES section of this man page:
https://www.openssl.org/docs/man3.2/man3/OPENSSL_thread_stop.html
But, if OPENSSL_thread_stop() is necessary for your circumstance, then
it applies even if you only use libcrypto.
Matt
More information about the openssl-users
mailing list