From c227efa2e6052f45cb0223d3d4a5337794c06c92 Mon Sep 17 00:00:00 2001 From: Mikko Ahlroth Date: Tue, 4 Nov 2014 22:58:38 +0200 Subject: [PATCH] Change settings text to TLS and explicitly only allow secure protocols --- qml/pages/AddConnection.qml | 2 +- src/sslrelayconnection.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qml/pages/AddConnection.qml b/qml/pages/AddConnection.qml index 27e724b..16f8648 100644 --- a/qml/pages/AddConnection.qml +++ b/qml/pages/AddConnection.qml @@ -180,7 +180,7 @@ Dialog { } MenuItem { - text: "SSL" + text: "TLS" } } } diff --git a/src/sslrelayconnection.cpp b/src/sslrelayconnection.cpp index 96c722d..31e5378 100644 --- a/src/sslrelayconnection.cpp +++ b/src/sslrelayconnection.cpp @@ -11,6 +11,10 @@ SSLRelayConnection::SSLRelayConnection(QSslSocket* socket, QObject* parent) : { QObject::connect(socket, SELECT&>::OVERLOAD_OF(&QSslSocket::sslErrors), this, &SSLRelayConnection::socketSslErrors); + + // Disable SSLv3 as it is old and vulnerable. This should use the protocols deemed safe by + // the Qt version deployed on the device. + sslSocket->setProtocol(QSsl::SecureProtocols); } void SSLRelayConnection::setHandler(ConnectionHandler* handler)