long_name_onDemandCerts_member - stop testing/using the deprecated API
Pick-to: 5.15 Change-Id: I3d7ea78627afcd0225e717d243da49fd70b58461 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
56187f1e45
commit
b7724048f9
@ -212,17 +212,6 @@ void tst_QSslSocket_onDemandCertificates_member::onDemandRootCertLoadingMemberMe
|
||||
{
|
||||
const QString host("www.qt.io");
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 5)
|
||||
{
|
||||
// not using any root certs -> should not work
|
||||
QSslSocketPtr socket2 = newSocket();
|
||||
this->socket = socket2.data();
|
||||
socket2->setCaCertificates(QList<QSslCertificate>());
|
||||
socket2->connectToHostEncrypted(host, 443);
|
||||
QVERIFY(!waitForEncrypted(socket2.data()));
|
||||
}
|
||||
#endif
|
||||
|
||||
// not using any root certs -> should not work
|
||||
QSslSocketPtr socket2 = newSocket();
|
||||
this->socket = socket2.data();
|
||||
@ -238,17 +227,6 @@ void tst_QSslSocket_onDemandCertificates_member::onDemandRootCertLoadingMemberMe
|
||||
socket->connectToHostEncrypted(host, 443);
|
||||
QVERIFY2(waitForEncrypted(socket.data()), qPrintable(socket->errorString()));
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 5)
|
||||
{
|
||||
// not using any root certs again -> should not work
|
||||
QSslSocketPtr socket3 = newSocket();
|
||||
this->socket = socket3.data();
|
||||
socket3->setCaCertificates(QList<QSslCertificate>());
|
||||
socket3->connectToHostEncrypted(host, 443);
|
||||
QVERIFY(!waitForEncrypted(socket3.data()));
|
||||
}
|
||||
#endif
|
||||
|
||||
// not using any root certs again -> should not work
|
||||
QSslSocketPtr socket3 = newSocket();
|
||||
this->socket = socket3.data();
|
||||
|
Loading…
Reference in New Issue
Block a user