From 1c1c1e4559db204f339c26bd6cbb5d568dcd47e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 18 Nov 2020 15:25:02 +0100 Subject: [PATCH] Fix schannel TLS 1.3 reneg delay With TLS 1.3 the client goes through renegotiation when using Schannel. The status returned is OK and we can immediately continue, so do that. Change-Id: I831eaae318df9d94b5fb7672db7e407d94f9da56 Reviewed-by: Timur Pocheptsov --- src/network/ssl/qsslsocket_schannel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/ssl/qsslsocket_schannel.cpp b/src/network/ssl/qsslsocket_schannel.cpp index 1e59550c59..051eb3fc3f 100644 --- a/src/network/ssl/qsslsocket_schannel.cpp +++ b/src/network/ssl/qsslsocket_schannel.cpp @@ -1696,6 +1696,8 @@ void QSslSocketBackendPrivate::continueHandshake() if (!renegotiate()) { disconnectFromHost(); return; + } else if (intermediateBuffer.size() || plainSocket->bytesAvailable()) { + continueHandshake(); } break; }