On Tue, Jul 22, 2014, Iaki Baz Castillo wrote: > Hi, > > In case each thread manages a separate SSL_CTX and > SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF) is set, do I > still need to set CRYPTO_set_locking_callback and > CRYPTO_THREADID_set_callback? > > I've read a lot about this, and I'm aware that locking is needed in > case two threads use the same SSL_CTX or in case session cache is > used, but what about in my usecase? >
In a multithreaded application you should *always* set the callbacks. Among other things the error queue uses the locking callback: without that you'd get race conditions and bad things will happen. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org