to threading.
Regards,
Ambarish
-Original Message-
From: Sean O'Dell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 14, 1999 12:00 PM
To: [EMAIL PROTECTED]
Subject: Is OpenSSL thread-safe?
Thread question:
I have a threaded listen server that works well without the
OpenSSL
Sean O'Dell [EMAIL PROTECTED]:
I'm using a single CTX for each SSL. I perform the accept() in the main
thread and then spawn a new thread. In the new thread, I create a new SSL
with the one common CTX, then perform SSL_accept, etc., including
SSL_shutdown; all in the new thread.
Does
Thread question:
I have a threaded listen server that works well without the OpenSSL library.
I've managed to convert it to use OpenSSL, but I'm curious what the
threading issues are. In particular:
I'm using a single CTX for each SSL. I perform the accept() in the main
thread and then spawn
Hannes Reinecke [EMAIL PROTECTED]:
[...] I've been using OpenSSL for about 1 year now in a
multi-threaded application without any problems and special
precautions.
You do need special precautions -- callbacks for mutexes and for
querying the thread ID.
Markus Wasserschaff wrote:
Hi,
is it safe to user OpenSSL in multi-threaded environments? Let's say in my
application multiple threads setup ssl connections to the same host(or
different hosts).
Are there any global data structures that have to be protected or does
OpenSSL handle