30 lines
972 B
Diff
30 lines
972 B
Diff
|
From 428b3b7b07a76a46e235cf9f491d1c1aa0bebf1e Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= <andrius@stikonas.eu>
|
||
|
Date: Mon, 26 Sep 2016 18:15:02 +0100
|
||
|
Subject: [PATCH] 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
|
||
|
---
|
||
|
src/core/tcpslavebase.cpp | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/core/tcpslavebase.cpp b/src/core/tcpslavebase.cpp
|
||
|
index b9be69d..27fe3d0 100644
|
||
|
--- a/src/core/tcpslavebase.cpp
|
||
|
+++ b/src/core/tcpslavebase.cpp
|
||
|
@@ -492,7 +492,7 @@ bool TCPSlaveBase::startSsl()
|
||
|
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,
|
||
|
--
|
||
|
2.10.0
|
||
|
|