Change settings text to TLS and explicitly only allow secure protocols
This commit is contained in:
parent
f30a995ef4
commit
c227efa2e6
2 changed files with 5 additions and 1 deletions
|
@ -180,7 +180,7 @@ Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: "SSL"
|
text: "TLS"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,10 @@ SSLRelayConnection::SSLRelayConnection(QSslSocket* socket, QObject* parent) :
|
||||||
{
|
{
|
||||||
QObject::connect(socket, SELECT<const QList<QSslError>&>::OVERLOAD_OF(&QSslSocket::sslErrors),
|
QObject::connect(socket, SELECT<const QList<QSslError>&>::OVERLOAD_OF(&QSslSocket::sslErrors),
|
||||||
this, &SSLRelayConnection::socketSslErrors);
|
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)
|
void SSLRelayConnection::setHandler(ConnectionHandler* handler)
|
||||||
|
|
Loading…
Reference in a new issue