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
Change-Id: Ia6cb10495875de232d69a886832ae74c5f5ac15f
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit b4a5f0c57cd9d14dc5a8e825aad6cc329dae1b23)
This commit is contained in:
Mårten Nordheim 2022-09-01 17:53:44 +02:00
parent 64b53da19a
commit b75504ab81

View File

@ -3662,7 +3662,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;