Change settings text to TLS and explicitly only allow secure protocols

This commit is contained in:
Mikko Ahlroth 2014-11-04 22:58:38 +02:00
parent f30a995ef4
commit c227efa2e6
2 changed files with 5 additions and 1 deletions

View file

@ -180,7 +180,7 @@ Dialog {
}
MenuItem {
text: "SSL"
text: "TLS"
}
}
}

View file

@ -11,6 +11,10 @@ SSLRelayConnection::SSLRelayConnection(QSslSocket* socket, QObject* parent) :
{
QObject::connect(socket, SELECT<const QList<QSslError>&>::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)