summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/ssl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/network/ssl')
-rw-r--r--tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
index 79bd4994db..0ac87a9cb1 100644
--- a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
@@ -4450,9 +4450,6 @@ void tst_QSslSocket::oldErrorsOnSocketReuse()
#if QT_CONFIG(openssl)
-void (QSslSocket::*const tlsErrorSignal)(const QList<QSslError> &) = &QSslSocket::sslErrors;
-void (QAbstractSocket::*const socketErrorSignal)(QAbstractSocket::SocketError) = &QAbstractSocket::error;
-
void tst_QSslSocket::alertMissingCertificate()
{
// In this test we want a server to abort the connection due to the failing
@@ -4474,7 +4471,7 @@ void tst_QSslSocket::alertMissingCertificate()
server.config.setMissingCertificateIsFatal(true);
QSslSocket clientSocket;
- connect(&clientSocket, tlsErrorSignal, [&clientSocket](const QList<QSslError> &errors){
+ connect(&clientSocket, &QSslSocket::sslErrors, [&clientSocket](const QList<QSslError> &errors){
qDebug() << "ERR";
clientSocket.ignoreSslErrors(errors);
});
@@ -4497,7 +4494,7 @@ void tst_QSslSocket::alertMissingCertificate()
// Presumably, RemoteHostClosedError for the client and SslHandshakeError
// for the server:
- connect(&clientSocket, socketErrorSignal, earlyQuitter);
+ connect(&clientSocket, &QAbstractSocket::errorOccurred, earlyQuitter);
connect(&server, &SslServer::socketError, earlyQuitter);
runner.enterLoopMSecs(1000);
@@ -4547,7 +4544,7 @@ void tst_QSslSocket::alertInvalidCertificate()
// Presumably, RemoteHostClosedError for the server and SslHandshakeError
// for the client:
- connect(&clientSocket, socketErrorSignal, earlyQuitter);
+ connect(&clientSocket, &QAbstractSocket::errorOccurred, earlyQuitter);
connect(&server, &SslServer::socketError, earlyQuitter);
runner.enterLoopMSecs(1000);