secure UDP server: do not use deprecated protocol (DTLS 1.0)
And also remove check for DtlsV1_2OrGreater for negotiated session protocol, since it must have been resolved to a specific protocol by this point. Fixes: QTBUG-100154 Pick-to: 6.3 6.2 Change-Id: I3aec31faed8b9cb22be0062da057c62864eba34f Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
797a6ca7e6
commit
bd6d6d92b5
@ -69,15 +69,9 @@ QString connection_info(QDtls *connection)
|
|||||||
|
|
||||||
info += DtlsServer::tr("; session protocol: ");
|
info += DtlsServer::tr("; session protocol: ");
|
||||||
switch (connection->sessionProtocol()) {
|
switch (connection->sessionProtocol()) {
|
||||||
case QSsl::DtlsV1_0:
|
|
||||||
info += DtlsServer::tr("DTLS 1.0.");
|
|
||||||
break;
|
|
||||||
case QSsl::DtlsV1_2:
|
case QSsl::DtlsV1_2:
|
||||||
info += DtlsServer::tr("DTLS 1.2.");
|
info += DtlsServer::tr("DTLS 1.2.");
|
||||||
break;
|
break;
|
||||||
case QSsl::DtlsV1_2OrLater:
|
|
||||||
info += DtlsServer::tr("DTLS 1.2 or later.");
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
info += DtlsServer::tr("Unknown protocol.");
|
info += DtlsServer::tr("Unknown protocol.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user