Jagannadha Bhattu G wrote:
Hi,

Can I call SSL_library_init multiple times in my code under different threads?

as SSL_library_init() initializes global tables it should only
be called from one thread a time and of course no other thread
should use the global data while SSL_library_init() is running.
Ideally it should be run once before the threads using ssl are
created.

From the documented return values,

it always returns 1 but this doesn't mean it's reentrant

Cheers,
Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to