>So, my questions are:
>- am I doing something and IS openssl threadsafe?
>- is there an alternative for openssl doing which also
>does the key-exchange for me?
YOU> Just implement your own per-connection mutex and you won't
YOU> have any problems.

Nope, won't work either!
I had something like:

send:
        pthread_mutex_lock(&lock);
        send
        unlock();

and for receive:
        pthread_mutex_lock(&lock);
        receive
        unlock();

well, you get my point.
And strangely enough, the connection gets aborted: sometimes
the next SSL_read and sometimes the next SSL_write fails
with error 1 (not sure if it was one, cannot check right now).

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to