----- Original Message ----- From: "Mark" <[EMAIL PROTECTED]> To: <openssl-users@openssl.org> Sent: Thursday, October 05, 2006 2:49 PM Subject: RE: Need help: Understanding SSL object in multi-threaded environment
> you may use the same H_SSL_CTX (handle to an SSL context) in > concurrent threads. This structure serves as a factory of ssl > connections. > You use SSL_new to create SSL connection handles (H_SSL). > These you can use only within one thread. > So, you may share H_SSL_CTX, you may not share H_SSL. I can't find anything in the documentation to suggest that you cannot share a SSL object between threads. The important thing is to implement the locking callbacks [CRYPTO_set_locking_callback() etc.]. [Urjit]: Correct. One should implement the locking callbacks. What I am confused about is the statement in openssl faq (http://www.openssl.org/support/faq.html#PROG1) that reads: --- 1. Is OpenSSL thread-safe? Yes (with limitations: an SSL connection may not concurrently be used by multiple threads) --- ~ Urjit DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]