cURL / Mailing Lists / curl-library / Single Mail


[PATCH] SSL_CTX caching - revisited

From: Shmulik Regev <>
Date: Thu, 16 Aug 2007 15:23:33 +0300

I'm re-submitting a patch to libcurl that reuses SSL_CTX objects across
multi objects (see I have
been using the code for a couple of months now without any sign of problems.
The implementation (which is now simpler than the original patch) assumes
that the following openssl parameters are the same for all the multi handles
that are binded to a share instance that implements SSL_CTX reuse: cert,
cipher_list, CAfile, CApath . The SSL_CTX objects (one per SSL_METHOD) are
managed by the share instance and are freed only when the share is.


Also attached is a test that utilizes multiple multi handles with a single
share handle that reuses the SSL_CTX object.


Received on 2007-08-16