[EMAIL PROTECTED] (Colin Bradley):

>   May I ask someone who is familiar with the degree of thread
>   safety of the OpenSSL libraries to comment on it? I have been 
>   unable to find clear documentation on this aspect of the 
>   implementation, but noted that some of the libraries 
>   appear to contain several calls to pthread_*,

But surely only in one of the example files (which unfortunately are
not marked as such, but the non-existance of a corresponding .o file
after a library build should give a good indication)?

>                                                 while
>   others do not, and still others contain comments that 
>   suggest thread-safety is not that reliable.. 

>   Specifically, can one use one SSL context across multiple
>   threads, each of which handles an outgoing client connection
>   on a non-synchronized basis? 

The intension is that this should be possible, and it appears to work
in practice; but unfortunately there is a bug in the handling of
certain library-internal data structures that can cause some problems.
(I never noticed a problem while running my multi-threaded
application, but when reading the library source code I found that a
certain shared data structure can be used be multiple threads as if it
were private.)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to