Excerpt from the book : "Network Security with OpenSSL" :

"An SSL_CTX object will be a factory for producing SSL connection objects.
This context allows us to set connection configuration parameters before the connection is made, such as protocol version, certificate information, and verification requirements. It is easiest to think of SSL_CTX objects as the containers for default values for the SSL connections to be made by a program.
...
In general, an application will create just one SSL_CTX object for all of the connections it makes."

And Yes, this is also true for multithreaded connections, as long as we are aware of :
https://www.openssl.org/docs/crypto/threads.html



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to