From 1f70a8df4b5bdbd9456186de46196699b136ad10 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 13 Nov 2015 18:25:35 +0100 Subject: [PATCH] SecureSocket: enable auto retry on connexion re-negociation This is required to talk with the proxy in Thalys trains. Now I'm online and I can push this! --- src/kits/network/libnetapi/SecureSocket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/network/libnetapi/SecureSocket.cpp b/src/kits/network/libnetapi/SecureSocket.cpp index d0ff62dcd7..d5e31e3224 100644 --- a/src/kits/network/libnetapi/SecureSocket.cpp +++ b/src/kits/network/libnetapi/SecureSocket.cpp @@ -183,6 +183,9 @@ BSecureSocket::Private::_CreateContext() // Disable legacy protocols. They have known vulnerabilities. SSL_CTX_set_options(sContext, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); + // Don't bother us with ERROR_WANT_READ. + SSL_CTX_set_mode(sContext, SSL_MODE_AUTO_RETRY); + // Setup certificate verification BPath certificateStore; find_directory(B_SYSTEM_DATA_DIRECTORY, &certificateStore);