From 61ba2e647e4b3057866a59b1edcd3c6112ef3698 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 30 Jun 2014 15:43:35 +0200 Subject: [PATCH] Add some missing SSL flags refs #6368 --- lib/base/tlsutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/tlsutility.cpp b/lib/base/tlsutility.cpp index d218974e3..0d0dd7613 100644 --- a/lib/base/tlsutility.cpp +++ b/lib/base/tlsutility.cpp @@ -66,7 +66,7 @@ shared_ptr MakeSSLContext(const String& pubkey, const String& privkey, shared_ptr sslContext = shared_ptr(SSL_CTX_new(TLSv1_method()), SSL_CTX_free); - SSL_CTX_set_mode(sslContext.get(), 0); + SSL_CTX_set_mode(sslContext.get(), SSL_MODE_ENABLE_PARTIAL_WRITE | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_AUTO_RETRY); if (!SSL_CTX_use_certificate_chain_file(sslContext.get(), pubkey.CStr())) { BOOST_THROW_EXCEPTION(openssl_error() -- 2.40.0