tst_QSslSocket::setSslConfiguration - skip if SecureTransport is in use
SecureTransport does not allow deprecated digest algorithms, and (depending on ST version) it may or may not accept our server's certificate. Funnily enough, they 'fluctuate' between versions again and again. Fixes: QTBUG-89922 Change-Id: Ie5fbfca316806bd5000ce2d128b81b718bb36624 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
0c7042defa
commit
3d5f86e77d
@ -1660,11 +1660,15 @@ void tst_QSslSocket::setSslConfiguration_data()
|
||||
QTest::newRow("empty") << QSslConfiguration() << false;
|
||||
QSslConfiguration conf = QSslConfiguration::defaultConfiguration();
|
||||
QTest::newRow("default") << conf << false; // does not contain test server cert
|
||||
#if !QT_CONFIG(securetransport)
|
||||
QList<QSslCertificate> testServerCert = QSslCertificate::fromPath(httpServerCertChainPath());
|
||||
conf.setCaCertificates(testServerCert);
|
||||
QTest::newRow("set-root-cert") << conf << true;
|
||||
conf.setProtocol(QSsl::SecureProtocols);
|
||||
QTest::newRow("secure") << conf << true;
|
||||
#else
|
||||
qWarning("Skipping the cases with certificate, SecureTransport does not like old certificate on the test server");
|
||||
#endif
|
||||
}
|
||||
|
||||
void tst_QSslSocket::setSslConfiguration()
|
||||
|
Loading…
x
Reference in New Issue
Block a user