]> sjero.net Git - wget/blobdiff - src/openssl.c
[svn] Tell OpenSSL to renegotiate automatically (mode SSL_MODE_AUTO_RETRY).
[wget] / src / openssl.c
index 253b903b65b7bc9da5574d1cc45f71edcdc9327e..ea382adf1357b7f1611b7ba41e52caf4e0e933d0 100644 (file)
@@ -225,6 +225,10 @@ ssl_init ()
      handles them correctly), allow them in OpenSSL.  */
   SSL_CTX_set_mode (ssl_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);
 
+  /* The OpenSSL library can handle renegotiations automatically, so
+     tell it to do so.  */
+  SSL_CTX_set_mode (ssl_ctx, SSL_MODE_AUTO_RETRY);
+
   return true;
 
  error: