diff options
author | Cristian RodrÃguez <crrodriguez@opensuse.org> | 2011-08-03 22:20:45 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-08-07 22:58:31 +0200 |
commit | 3d919440c80333c496fbb52bf5284c8d84a320cd (patch) | |
tree | 38122d41812cc4056c884157864bcece6372ae5e /lib | |
parent | 339fef444032da541cb8bf2c74f764893c935b7c (diff) |
OpenSSL: Use SSL_MODE_RELEASE_BUFFERS if available, reduces memory use
See also :
http://www.openssl.org/docs/ssl/SSL_CTX_set_mode.html
http://www.imperialviolet.org/2010/06/25/overclocking-ssl.html
Signed-off-by: Cristian RodrÃguez <crrodriguez@opensuse.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 91ed93b2c..924a37df4 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -1489,6 +1489,10 @@ ossl_connect_step1(struct connectdata *conn, return CURLE_OUT_OF_MEMORY; } +#ifdef SSL_MODE_RELEASE_BUFFERS + SSL_CTX_set_mode(connssl->ctx, SSL_MODE_RELEASE_BUFFERS); +#endif + #ifdef SSL_CTRL_SET_MSG_CALLBACK if(data->set.fdebug && data->set.verbose) { /* the SSL trace callback is only used for verbose logging so we only |