summaryrefslogtreecommitdiff
blob: d7b42841c5702d4256ff6801d5b8fb2b520a6eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Andrius Štikonas <andrius@stikonas.eu>
Date: Mon, 26 Sep 2016 17:15:02 +0000
Subject: Fix kio using only tls1.0.
X-Git-Url: http://quickgit.kde.org/?p=kio.git&a=commitdiff&h=8196a735bebc6fd5eaf9d293bd565c00ef98516b
---
Fix kio using only tls1.0.

Now kio should use QSsl::SslProtocol::SecureProtocols which will deprecate
unsafe TLS versions when they are no longer safe.

REVIEW: 129031
---


--- a/src/core/tcpslavebase.cpp
+++ b/src/core/tcpslavebase.cpp
@@ -492,7 +492,7 @@
     if (d->usingSSL) {
         return false;
     }
-    return d->startTLSInternal(KTcpSocket::TlsV1) & ResultOk;
+    return d->startTLSInternal(KTcpSocket::SecureProtocols) & ResultOk;
 }
 
 TCPSlaveBase::SslResult TCPSlaveBase::TcpSlaveBasePrivate::startTLSInternal(KTcpSocket::SslVersion version,