8#include "qsslpresharedkeyauthenticator_p.h"
9#include "qsslpresharedkeyauthenticator.h"
10#include "qsslsocket_p.h"
11#include "qsslcipher_p.h"
18#include <QtCore/private/qfactoryloader_p.h>
20#include "QtCore/qapplicationstatic.h"
21#include <QtCore/qbytearray.h>
22#include <QtCore/qmutex.h>
29using namespace Qt::StringLiterals;
32 QStringLiteral(
"/tls"))
36class BackendCollection
39 void addBackend(QTlsBackend *backend)
42 Q_ASSERT(std::find(backends.begin(), backends.end(), backend) == backends.end());
43 const QMutexLocker locker(&collectionMutex);
44 backends.push_back(backend);
47 void removeBackend(QTlsBackend *backend)
50 const QMutexLocker locker(&collectionMutex);
51 const auto it = std::find(backends.begin(), backends.end(), backend);
52 Q_ASSERT(it != backends.end());
56 bool tryPopulateCollection()
61 Q_CONSTINIT
static QBasicMutex mutex;
62 const QMutexLocker locker(&mutex);
67 qtlsbLoader->update();
70 while (qtlsbLoader->instance(index))
76 QList<QString> backendNames()
79 if (!tryPopulateCollection())
82 const QMutexLocker locker(&collectionMutex);
86 names.reserve(backends.size());
87 for (
const auto *backend : backends) {
88 if (backend->isValid())
89 names.append(backend->backendName());
95 QTlsBackend *backend(
const QString &name)
97 if (!tryPopulateCollection())
100 const QMutexLocker locker(&collectionMutex);
101 const auto it = std::find_if(backends.begin(), backends.end(),
102 [&name](
const auto *fct) {
return fct->backendName() == name;});
104 return it == backends.end() ?
nullptr : *it;
108 std::vector<QTlsBackend *> backends;
109 QMutex collectionMutex;
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
147
148
149
150
151
152
153
155const QString QTlsBackend::builtinBackendNames[] = {
156 QStringLiteral(
"schannel"),
157 QStringLiteral(
"securetransport"),
158 QStringLiteral(
"openssl"),
159 QStringLiteral(
"cert-only")
163
164
165
166
167
168QTlsBackend::QTlsBackend()
171 backends->addBackend(
this);
173 if (QCoreApplication::instance()) {
174 connect(QCoreApplication::instance(), &QCoreApplication::destroyed,
this, [
this] {
181
182
183
184
185
186QTlsBackend::~QTlsBackend()
189 backends->removeBackend(
this);
193
194
195
196
197
198
199
200
201
202
204bool QTlsBackend::isValid()
const
210
211
212
213
214
215
216
217long QTlsBackend::tlsLibraryVersionNumber()
const
223
224
225
226
227
228
229
231QString QTlsBackend::tlsLibraryVersionString()
const
237
238
239
240
241
242
243
245long QTlsBackend::tlsLibraryBuildVersionNumber()
const
251
252
253
254
255
256
257
258QString QTlsBackend::tlsLibraryBuildVersionString()
const
264
265
266
267
268void QTlsBackend::ensureInitialized()
const
272#define REPORT_MISSING_SUPPORT(message)
273 qCWarning(lcSsl) << "The backend" << backendName() << message
276
277
278
279
280
281
282
283
284QTlsPrivate::TlsKey *QTlsBackend::createKey()
const
291
292
293
294
295
296
297
298
299QTlsPrivate::X509Certificate *QTlsBackend::createCertificate()
const
306
307
308
309
310
311
312
313QList<QSslCertificate> QTlsBackend::systemCaCertificates()
const
320
321
322
323
324
325
326
327
328QTlsPrivate::TlsCryptograph *QTlsBackend::createTlsCryptograph()
const
335
336
337
338
339
340
341
342
343QTlsPrivate::DtlsCryptograph *QTlsBackend::createDtlsCryptograph(QDtls *qObject,
int mode)
const
352
353
354
355
356
357
358
359
360QTlsPrivate::DtlsCookieVerifier *QTlsBackend::createDtlsCookieVerifier()
const
367
368
369
370
371
372
373
374
376QTlsPrivate::X509ChainVerifyPtr QTlsBackend::X509Verifier()
const
383
384
385
386
387
388
389QTlsPrivate::X509PemReaderPtr QTlsBackend::X509PemReader()
const
396
397
398
399
400
401
402QTlsPrivate::X509DerReaderPtr QTlsBackend::X509DerReader()
const
409
410
411
412
413
414
415QTlsPrivate::X509Pkcs12ReaderPtr QTlsBackend::X509Pkcs12Reader()
const
422
423
424
425
426
427
428
429
430
431
432QList<
int> QTlsBackend::ellipticCurvesIds()
const
439
440
441
442
443
444
445
446
447
448
449int QTlsBackend::curveIdFromShortName(
const QString &name)
const
457
458
459
460
461
462
463
464
465
466
467int QTlsBackend::curveIdFromLongName(
const QString &name)
const
475
476
477
478
479
480
481
482
483
484QString QTlsBackend::shortNameForId(
int cid)
const
492
493
494
495
496
497
498
499
500
501QString QTlsBackend::longNameForId(
int cid)
const
509
510
511
512
513
514
515
516bool QTlsBackend::isTlsNamedCurve(
int cid)
const
524
525
526
527
528
529
530
531
532
533int QTlsBackend::dhParametersFromDer(
const QByteArray &derData, QByteArray *data)
const
542
543
544
545
546
547
548
549
550
551int QTlsBackend::dhParametersFromPem(
const QByteArray &pemData, QByteArray *data)
const
560
561
562
563
564
565
566
567QList<QString> QTlsBackend::availableBackendNames()
572 return backends->backendNames();
576
577
578
579
580QString QTlsBackend::defaultBackendName()
583 const auto names = availableBackendNames();
584 auto name = builtinBackendNames[nameIndexOpenSSL];
585 if (names.contains(name))
587 name = builtinBackendNames[nameIndexSchannel];
588 if (names.contains(name))
590 name = builtinBackendNames[nameIndexSecureTransport];
591 if (names.contains(name))
594 const auto pos = std::find_if(names.begin(), names.end(), [](
const auto &name) {
595 return name != builtinBackendNames[nameIndexCertOnly];
598 if (pos != names.end())
608
609
610
611
612
613
614QTlsBackend *QTlsBackend::findBackend(
const QString &backendName)
619 if (
auto *fct = backends->backend(backendName))
622 qCWarning(lcSsl) <<
"Cannot create unknown backend named" << backendName;
627
628
629
630
631
632
633QTlsBackend *QTlsBackend::activeOrAnyBackend()
636 return QSslSocketPrivate::tlsBackendInUse();
638 return findBackend(defaultBackendName());
643
644
645
646
647
648
649
650
651
652
653QList<QSsl::SslProtocol> QTlsBackend::supportedProtocols(
const QString &backendName)
658 if (
const auto *fct = backends->backend(backendName))
659 return fct->supportedProtocols();
665
666
667
668
669
670
671
672
673QList<QSsl::SupportedFeature> QTlsBackend::supportedFeatures(
const QString &backendName)
678 if (
const auto *fct = backends->backend(backendName))
679 return fct->supportedFeatures();
685
686
687
688
689
690
691
692QList<QSsl::ImplementedClass> QTlsBackend::implementedClasses(
const QString &backendName)
697 if (
const auto *fct = backends->backend(backendName))
698 return fct->implementedClasses();
704
705
706
707void QTlsBackend::resetBackend(QSslKey &key, QTlsPrivate::TlsKey *keyBackend)
710 key.d->backend.reset(keyBackend);
713 Q_UNUSED(keyBackend);
718
719
720
721
722void QTlsBackend::setupClientPskAuth(QSslPreSharedKeyAuthenticator *auth,
const char *hint,
723 int hintLength,
unsigned maxIdentityLen,
unsigned maxPskLen)
728 auth->d->identityHint = QByteArray::fromRawData(hint, hintLength);
730 auth->d->maximumIdentityLength =
int(maxIdentityLen) - 1;
731 auth->d->maximumPreSharedKeyLength =
int(maxPskLen);
735 Q_UNUSED(hintLength);
736 Q_UNUSED(maxIdentityLen);
742
743
744
745
746void QTlsBackend::setupServerPskAuth(QSslPreSharedKeyAuthenticator *auth,
const char *identity,
747 const QByteArray &identityHint,
unsigned int maxPskLen)
751 auth->d->identityHint = identityHint;
752 auth->d->identity = identity;
753 auth->d->maximumIdentityLength = 0;
754 auth->d->maximumPreSharedKeyLength =
int(maxPskLen);
758 Q_UNUSED(identityHint);
765
766
767
768
769
770
771
772QSslCipher QTlsBackend::createCiphersuite(
const QString &descriptionOneLine,
int bits,
int supportedBits)
776 const auto descriptionList = QStringView{descriptionOneLine}.split(u' ', Qt::SkipEmptyParts);
777 if (descriptionList.size() > 5) {
778 ciph.d->isNull =
false;
779 ciph.d->name = descriptionList.at(0).toString();
781 QStringView protoString = descriptionList.at(1);
782 ciph.d->protocolString = protoString.toString();
783 ciph.d->protocol = QSsl::UnknownProtocol;
785QT_WARNING_DISABLE_DEPRECATED
786 if (protoString.startsWith(u"TLSv1")) {
787 QStringView tail = protoString.sliced(5);
788 if (tail.startsWith(u'.')) {
789 tail = tail.sliced(1);
791 ciph.d->protocol = QSsl::TlsV1_3;
792 else if (tail == u"2")
793 ciph.d->protocol = QSsl::TlsV1_2;
794 else if (tail == u"1")
795 ciph.d->protocol = QSsl::TlsV1_1;
796 }
else if (tail.isEmpty()) {
797 ciph.d->protocol = QSsl::TlsV1_0;
802 if (descriptionList.at(2).startsWith(
"Kx="_L1))
803 ciph.d->keyExchangeMethod = descriptionList.at(2).mid(3).toString();
804 if (descriptionList.at(3).startsWith(
"Au="_L1))
805 ciph.d->authenticationMethod = descriptionList.at(3).mid(3).toString();
806 if (descriptionList.at(4).startsWith(
"Enc="_L1))
807 ciph.d->encryptionMethod = descriptionList.at(4).mid(4).toString();
808 ciph.d->exportable = (descriptionList.size() > 6 && descriptionList.at(6) ==
"export"_L1);
811 ciph.d->supportedBits = supportedBits;
818
819
820
821
822
823
824
825QSslCipher QTlsBackend::createCiphersuite(
const QString &suiteName, QSsl::SslProtocol protocol,
826 const QString &protocolString)
830 if (!suiteName.size())
833 ciph.d->isNull =
false;
834 ciph.d->name = suiteName;
835 ciph.d->protocol = protocol;
836 ciph.d->protocolString = protocolString;
838 const auto bits = QStringView{ciph.d->name}.split(u'-');
839 if (bits.size() >= 2) {
840 if (bits.size() == 2 || bits.size() == 3)
841 ciph.d->keyExchangeMethod =
"RSA"_L1;
842 else if (bits.front() ==
"DH"_L1 || bits.front() ==
"DHE"_L1)
843 ciph.d->keyExchangeMethod =
"DH"_L1;
844 else if (bits.front() ==
"ECDH"_L1 || bits.front() ==
"ECDHE"_L1)
845 ciph.d->keyExchangeMethod =
"ECDH"_L1;
847 qCWarning(lcSsl) <<
"Unknown Kx" << ciph.d->name;
849 if (bits.size() == 2 || bits.size() == 3)
850 ciph.d->authenticationMethod =
"RSA"_L1;
851 else if (ciph.d->name.contains(
"-ECDSA-"_L1))
852 ciph.d->authenticationMethod =
"ECDSA"_L1;
853 else if (ciph.d->name.contains(
"-RSA-"_L1))
854 ciph.d->authenticationMethod =
"RSA"_L1;
856 qCWarning(lcSsl) <<
"Unknown Au" << ciph.d->name;
858 if (ciph.d->name.contains(
"RC4-"_L1)) {
859 ciph.d->encryptionMethod =
"RC4(128)"_L1;
861 ciph.d->supportedBits = 128;
862 }
else if (ciph.d->name.contains(
"DES-CBC3-"_L1)) {
863 ciph.d->encryptionMethod =
"3DES(168)"_L1;
865 ciph.d->supportedBits = 168;
866 }
else if (ciph.d->name.contains(
"AES128-"_L1)) {
867 ciph.d->encryptionMethod =
"AES(128)"_L1;
869 ciph.d->supportedBits = 128;
870 }
else if (ciph.d->name.contains(
"AES256-GCM"_L1)) {
871 ciph.d->encryptionMethod =
"AESGCM(256)"_L1;
873 ciph.d->supportedBits = 256;
874 }
else if (ciph.d->name.contains(
"AES256-"_L1)) {
875 ciph.d->encryptionMethod =
"AES(256)"_L1;
877 ciph.d->supportedBits = 256;
878 }
else if (ciph.d->name.contains(
"CHACHA20-"_L1)) {
879 ciph.d->encryptionMethod =
"CHACHA20"_L1;
881 ciph.d->supportedBits = 256;
882 }
else if (ciph.d->name.contains(
"NULL-"_L1)) {
883 ciph.d->encryptionMethod =
"NULL"_L1;
885 qCWarning(lcSsl) <<
"Unknown Enc" << ciph.d->name;
892
893
894
895
896
897
898
899
900
901QSslCipher QTlsBackend::createCiphersuite(
const QString &name,
const QString &keyExchangeMethod,
902 const QString &encryptionMethod,
903 const QString &authenticationMethod,
904 int bits, QSsl::SslProtocol protocol,
905 const QString &protocolString)
908 cipher.d->isNull =
false;
909 cipher.d->name = name;
910 cipher.d->bits = bits;
911 cipher.d->supportedBits = bits;
912 cipher.d->keyExchangeMethod = keyExchangeMethod;
913 cipher.d->encryptionMethod = encryptionMethod;
914 cipher.d->authenticationMethod = authenticationMethod;
915 cipher.d->protocol = protocol;
916 cipher.d->protocolString = protocolString;
921
922
923
924
925
926QList<QSslCipher> QTlsBackend::defaultCiphers()
928 return QSslSocketPrivate::defaultCiphers();
932
933
934
935QList<QSslCipher> QTlsBackend::defaultDtlsCiphers()
937 return QSslSocketPrivate::defaultDtlsCiphers();
941
942
943
944
945
946void QTlsBackend::setDefaultCiphers(
const QList<QSslCipher> &ciphers)
948 QSslSocketPrivate::setDefaultCiphers(ciphers);
952
953
954
955
956
957void QTlsBackend::setDefaultDtlsCiphers(
const QList<QSslCipher> &ciphers)
959 QSslSocketPrivate::setDefaultDtlsCiphers(ciphers);
963
964
965
966
967
968void QTlsBackend::setDefaultSupportedCiphers(
const QList<QSslCipher> &ciphers)
970 QSslSocketPrivate::setDefaultSupportedCiphers(ciphers);
974
975
976
977
978void QTlsBackend::resetDefaultEllipticCurves()
980 QSslSocketPrivate::resetDefaultEllipticCurves();
984
985
986
987
988
989void QTlsBackend::setDefaultCaCertificates(
const QList<QSslCertificate> &certs)
991 QSslSocketPrivate::setDefaultCaCertificates(certs);
995
996
997
998bool QTlsBackend::rootLoadingOnDemandAllowed(
const QSslConfiguration &configuration)
1000 return configuration.d->allowRootCertOnDemandLoading;
1004
1005
1006
1007void QTlsBackend::storePeerCertificate(QSslConfiguration &configuration,
1008 const QSslCertificate &peerCert)
1010 configuration.d->peerCertificate = peerCert;
1014
1015
1016
1017void QTlsBackend::storePeerCertificateChain(QSslConfiguration &configuration,
1018 const QList<QSslCertificate> &peerChain)
1020 configuration.d->peerCertificateChain = peerChain;
1024
1025
1026
1027void QTlsBackend::clearPeerCertificates(QSslConfiguration &configuration)
1029 configuration.d->peerCertificate.clear();
1030 configuration.d->peerCertificateChain.clear();
1034
1035
1036
1037void QTlsBackend::clearPeerCertificates(QSslSocketPrivate *d)
1040 d->configuration.peerCertificate.clear();
1041 d->configuration.peerCertificateChain.clear();
1045
1046
1047
1048void QTlsBackend::setPeerSessionShared(QSslSocketPrivate *d,
bool shared)
1051 d->configuration.peerSessionShared = shared;
1055
1056
1057
1058void QTlsBackend::setSessionAsn1(QSslSocketPrivate *d,
const QByteArray &asn1)
1061 d->configuration.sslSession = asn1;
1065
1066
1067
1068void QTlsBackend::setSessionLifetimeHint(QSslSocketPrivate *d,
int hint)
1071 d->configuration.sslSessionTicketLifeTimeHint = hint;
1075
1076
1077
1078void QTlsBackend::setAlpnStatus(QSslSocketPrivate *d, AlpnNegotiationStatus st)
1081 d->configuration.nextProtocolNegotiationStatus = st;
1085
1086
1087
1088void QTlsBackend::setNegotiatedProtocol(QSslSocketPrivate *d,
const QByteArray &protocol)
1091 d->configuration.nextNegotiatedProtocol = protocol;
1095
1096
1097
1098void QTlsBackend::storePeerCertificate(QSslSocketPrivate *d,
const QSslCertificate &peerCert)
1101 d->configuration.peerCertificate = peerCert;
1105
1106
1107
1108
1109
1110
1111
1112void QTlsBackend::storePeerCertificateChain(QSslSocketPrivate *d,
1113 const QList<QSslCertificate> &peerChain)
1116 d->configuration.peerCertificateChain = peerChain;
1120
1121
1122
1123
1124
1125
1126void QTlsBackend::addTustedRoot(QSslSocketPrivate *d,
const QSslCertificate &rootCert)
1129 if (!d->configuration.caCertificates.contains(rootCert))
1130 d->configuration.caCertificates += rootCert;
1134
1135
1136
1137
1138
1139
1140void QTlsBackend::setEphemeralKey(QSslSocketPrivate *d,
const QSslKey &key)
1143 d->configuration.ephemeralServerKey = key;
1147
1148
1149
1150
1151
1152void QTlsBackend::forceAutotestSecurityLevel()
1161
1162
1163
1164
1165
1166
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1250
1251
1252
1253
1254
1255
1256
1257
1258
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1276
1277
1278
1279
1280
1281
1282
1283
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1298
1299
1300
1301
1302
1305
1306
1307
1308
1309
1312
1313
1314
1315
1316
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1331
1332
1333
1334
1335
1336
1337
1338
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1369
1370
1371
1372
1376
1377
1378
1379
1380
1398
1399
1400
1401
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1433
1434
1435
1436
1437
1438
1441
1442
1443
1444
1445
1446
1447
1448
1451
1452
1453
1454
1455
1456
1457
1460
1461
1462
1463
1464
1465
1466
1469
1470
1471
1472
1473
1474
1475
1476
1479
1480
1481
1482
1483
1484
1485
1486
1487
1490
1491
1492
1493
1494
1495
1496
1497
1498
1501
1502
1503
1504
1505
1506
1507
1508
1509
1512
1513
1514
1515
1516
1517
1518
1519
1520
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1553
1554
1555
1556
1557
1558
1559
1560
1561
1564
1565
1566
1567
1568
1569
1570
1571
1574
1575
1576
1577
1578
1579
1580
1581
1584
1585
1586
1587
1588
1589
1592
1593
1594
1595
1596
1597
1598
1599
1602
1603
1604
1605
1606
1607
1608
1609
1610
1613
1614
1615
1616
1617
1618
1619
1620
1621
1624
1625
1626
1627
1628
1629
1630
1631
1634
1635
1636
1637
1638
1639
1640
1641
1642
1645
1646
1647
1648
1649
1650
1653
1654
1655
1656
1657
1658
1661
1662
1663
1664
1665
1666
1669
1670
1671
1672
1673
1674
1677
1678
1679
1680
1681
1682
1685
1686
1687
1688
1692
1693
1694
1695
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1725
1726
1727
1728
1729
1730
1733
1734
1735
1736
1737
1738
1739
1740
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1768
1769
1770
1771
1772
1773
1774
1775
1776
1779
1780
1781
1782
1783
1784
1785
1786
1789
1790
1791
1792
1793
1794
1795
1798
1799
1800
1801
1802
1803
1806
1807
1808
1809
1810
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1835
1836
1837
1838
1842
1843
1844
1845
1846
1847
1848
1849
1850
1857
1858
1859
1860
1861
1862
1863
1870
1871
1872
1873
1874
1875
1876
1877
1878
1884
1885
1886
1887
1888
1889
1895
1896
1897
1898
1899
1900
1901
1902
1909
1910
1911
1912
1913
1914
1921
1922
1923
1924
1925
1932
1933
1934
1935
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1961
1962
1963
1964
1965
1966
1967
1970
1971
1972
1973
1974
1975
1976
1977
1980
1981
1982
1983
1984
1985
1986
1987
1990
1991
1992
1993
1994
1995
1996
1997
2000
2001
2002
2003
2004
2005
2006
2007
2010
2011
2012
2013
2014
2015
2016
2017
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2033
2034
2035
2036
2037
2038
2039
2040
2043
2044
2045
2046
2050
2051
2052
2053
2054
2055
2056
2057
2058
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2075
2076
2077
2078
2079
2080
2081
2082
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2118
2119
2120
2121
2122
2123
2124
2125
2128
2129
2130
2131
2132
2133
2134
2135
2138
2139
2140
2141
2142
2143
2144
2145
2148
2149
2150
2151
2152
2153
2154
2157
2158
2159
2160
2161
2162
2163
2164
2165
2168
2169
2170
2171
2172
2173
2174
2177
2178
2179
2180
2181
2182
2183
2184
2187
2188
2189
2190
2191
2192
2193
2194
2197
2198
2199
2200
2201
2202
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2218
2219
2220
2221
2222
2223
2224
2225
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2247
2248
2249
2250
2251
2252
2253
2254
2255
2258
2259
2260
2261
2262
2263
2264
2265
2266
2269
2270
2271
2272
2273
2274
2277
2278
2279
2280
2281
2282
2283
2284
2287
2288
2289
2290
2291
2292
2293
2294
2297
2298
2299
2300
2301
2302
2303
2304
2307
2308
2309
2310
2311
2312
2313
2314
2315
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2331
2332
2333
2334
2335
2336
2337
2346
2347
2348Q_NETWORK_EXPORT
void qt_ForceTlsSecurityLevel()
2350 if (
auto *backend = QSslSocketPrivate::tlsBackendInUse())
2351 backend->forceAutotestSecurityLevel();
2358#include "moc_qtlsbackend_p.cpp"
Namespace containing onternal types that TLS backends implement.
Q_APPLICATION_STATIC(QFactoryLoader, qtlsbLoader, QTlsBackend_iid, QStringLiteral("/tls")) namespace
#define REPORT_MISSING_SUPPORT(message)
Q_GLOBAL_STATIC(BackendCollection, backends)