On Tue, Jul 06, 1999 at 09:37:39PM -0400, Thomas Reinke wrote:
> J-L Charton:
>> is the SSL library safe in a multi-threaded environment ?
> Tot he best of my knowledge, mostly yes. The solution
> employed is to use callback routines that employ locks
> of one form or another (e.g. mutex'es).
Also you have to provide a callback that returns a thread ID (unless
you're using Windows, where OpenSSL already knows how to obtain the
thread ID from the OS). For locking callbacks, you can either provide
strict mutexes, or reader/writer locks; the latter should help improve
performance on multi-processor systems. Depending on the OS, you will
have to specify some additional options when compiling the library --
unfortunately there are operating systems on which you can't compile a
library so that it works both with standard and with multi-threaded
applications. (And some OS's have pthreads.h in the standard include
directory, but don't provide any way whatsoever to compile
multi-threaded programs that really work; at least not with the
errno.h that is in the same directory as pthreads.h.)
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]