aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorCristian Rodriguez <crrodriguez@opensuse.org>2013-11-07 14:32:59 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-11-07 14:32:59 +0000
commite3e5821562e4e14ebc519f419de2520811398ee5 (patch)
treea7259e915b9092290e2e7e2faf8c89036790d492 /url.c
parentUse SSL_OP_NO_COMPRESSION if available (diff)
downloadw3m-e3e5821562e4e14ebc519f419de2520811398ee5.tar.gz
w3m-e3e5821562e4e14ebc519f419de2520811398ee5.zip
Use SSL_MODE_RELEASE_BUFFERS if available
Patch from openSUSE on 2012-11-12: https://build.opensuse.org/request/show/141054
Diffstat (limited to '')
-rw-r--r--url.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/url.c b/url.c
index e450d6c..5b23460 100644
--- a/url.c
+++ b/url.c
@@ -341,6 +341,11 @@ openSSLHandle(int sock, char *hostname, char **p_cert)
option |= SSL_OP_NO_COMPRESSION;
#endif
SSL_CTX_set_options(ssl_ctx, option);
+
+#ifdef SSL_MODE_RELEASE_BUFFERS
+ SSL_CTX_set_mode (ssl_ctx, SSL_MODE_RELEASE_BUFFERS);
+#endif
+
#ifdef USE_SSL_VERIFY
/* derived from openssl-0.9.5/apps/s_{client,cb}.c */
#if 1 /* use SSL_get_verify_result() to verify cert */