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:
Timur Pocheptsov 2022-03-08 12:14:14 +01:00 committed by Mårten Nordheim
parent 797a6ca7e6
commit bd6d6d92b5

View File

@ -69,15 +69,9 @@ QString connection_info(QDtls *connection)
info += DtlsServer::tr("; session protocol: ");
switch (connection->sessionProtocol()) {
case QSsl::DtlsV1_0:
info += DtlsServer::tr("DTLS 1.0.");
break;
case QSsl::DtlsV1_2:
info += DtlsServer::tr("DTLS 1.2.");
break;
case QSsl::DtlsV1_2OrLater:
info += DtlsServer::tr("DTLS 1.2 or later.");
break;
default:
info += DtlsServer::tr("Unknown protocol.");
}