Chris Bamford <[EMAIL PROTECTED]>:
> I wonder if anyone can help? I am getting occasional core dumps
> when using SSL_CTX_free() in a multi-threaded application.
[...]
Do you provide mutexes to the library? For multi-threaded applications,
the following calls are required in initialization:
CRYPTO_set_id_callback(id_callback);
CRYPTO_set_locking_callback(locking_callback);
The two callback functions must be provided by the application. Under
Windows, CRYPTO_set_id_callback is not required because OpenSSL knows
about GetCurrentThreadId(); also you can do without
CRYPTO_set_id_callback on those Unix thread implementations where
threads have distinct PIDs, but then you have to expect severe
problems on other implementations where threads created within on
process share one PID.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]