Fix compilation without DTLS

Change-Id: I6062c4454c547b943d7ef26b22eeccf566888767
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Jędrzej Nowacki 2019-02-28 14:28:00 +01:00 committed by Timur Pocheptsov
parent 381f79a53c
commit 62f6fb3017

View File

@ -193,7 +193,6 @@ init_context:
minVersion = TLS1_2_VERSION;
maxVersion = 0;
break;
#if QT_CONFIG(dtls)
case QSsl::DtlsV1_0:
minVersion = DTLS1_VERSION;
maxVersion = DTLS1_VERSION;
@ -210,7 +209,6 @@ init_context:
minVersion = DTLS1_2_VERSION;
maxVersion = DTLS_MAX_VERSION;
break;
#endif // dtls
case QSsl::TlsV1_3OrLater:
#ifdef TLS1_3_VERSION
minVersion = TLS1_3_VERSION;