tst_QSsSocket: fix verifyClientCertificate with OpenSSL 3

OpenSSL 3 by default disables TLS < 1.2 in the conf files. We're not
going to work against that, so we bump the version of TLS used.
Keep the client-side TLS 1.0 Or Later just to keep testing that this
part works.

Task-number: QTBUG-95123
Task-number: QTBUG-106018
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: Ia6cb10495875de232d69a886832ae74c5f5ac15f
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Mårten Nordheim 2022-09-01 17:53:44 +02:00
parent 0206283a4b
commit b4a5f0c57c

View File

@ -3652,7 +3652,7 @@ void tst_QSslSocket::verifyClientCertificate()
}
SslServer server;
server.protocol = Test::TlsV1_0;
server.protocol = QSsl::TlsV1_2;
server.addCaCertificates = testDataDir + "certs/bogus-ca.crt";
server.ignoreSslErrors = false;
server.peerVerifyMode = peerVerifyMode;