X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fopenssl.c;h=ea382adf1357b7f1611b7ba41e52caf4e0e933d0;hb=9aae24589097d8487a677a55caa084973ebe041e;hp=253b903b65b7bc9da5574d1cc45f71edcdc9327e;hpb=335f7a4f924bff3cf0d0028b5c81efe14051e399;p=wget diff --git a/src/openssl.c b/src/openssl.c index 253b903b..ea382adf 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -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: