summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2018-03-20 12:01:48 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2018-04-09 07:24:52 +0000
commit1c92bb87fe4d32265b3c6d33b6e548bd41635c15 (patch)
tree1f8f16e9cfb4fd6dae9b43c00145559a24db919f
parent1b109dbd917e7e4627177f375f17e60257486520 (diff)
Fix TlsV1SslV3 case in the WinRT SSL backend
It would previously only enable TLS v1.0, but it should also enable SSL v3. According to Microsoft's documentation[0] that is exactly what "SocketProtectionLevel_Ssl" does. [0]: https://docs.microsoft.com/en-us/uwp/api/windows.networking.sockets.socketprotectionlevel Change-Id: Id48f1ad310d994b8379116c9fa2102db858d7f69 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r--src/network/ssl/qsslsocket_winrt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qsslsocket_winrt.cpp b/src/network/ssl/qsslsocket_winrt.cpp
index ff9dccc734..53a8a8b61b 100644
--- a/src/network/ssl/qsslsocket_winrt.cpp
+++ b/src/network/ssl/qsslsocket_winrt.cpp
@@ -236,9 +236,9 @@ void QSslSocketBackendPrivate::startClientEncryption()
switch (q->protocol()) {
case QSsl::AnyProtocol:
case QSsl::SslV3:
+ case QSsl::TlsV1SslV3:
protectionLevel = SocketProtectionLevel_Ssl; // Only use this value if weak cipher support is required
break;
- case QSsl::TlsV1SslV3:
case QSsl::TlsV1_0:
protectionLevel = SocketProtectionLevel_Tls10;
break;