[omniORB] Another SSL bug?
Vladimir Panov
gbr@netel.bg
Mon Sep 23 15:12:00 2002
I inserted a call to SSL_library_init() in the function
sslContext::set_cipher() in the file
src/lib/omniORB/orbcore/ssl/sslContext.cc (this could be stupid, or at
least not best). And then the ssl_echo example almost worked. I found
out that OpenSSL calls back sslContext_locking_callback() at program
exit (or at least after ORB shutdown) and the client segfaults. So I
inserted the following lines in sslContext::thread_cleanup():
CRYPTO_set_locking_callback(NULL);
#ifndef __WIN32__
CRYPTO_set_id_callback(NULL);
#endif
Actually, I don't know what exactly this callback is about. Now the
example runs OK. Have I done right?