summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-02-06 19:58:09 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-07 18:03:30 +0100
commitf7b5e9bce59c5dfdd9cc8cc2f14bbb3c6baa70d7 (patch)
tree16dcb917fd6377366792115f0bc7130695066b15
parent35a099243403ee0521474f9c53678c6f4420969c (diff)
downloadqtwebsockets-f7b5e9bce59c5dfdd9cc8cc2f14bbb3c6baa70d7.tar.gz
Connect sslErrors signal when a secure connection is established
Task-number: QTBUG-36676 Change-Id: Ia93751e5a972adf6434b0d749376e2a8c0619514 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
-rw-r--r--src/websockets/qwebsocket_p.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp
index d05b321..1c4baca 100644
--- a/src/websockets/qwebsocket_p.cpp
+++ b/src/websockets/qwebsocket_p.cpp
@@ -377,6 +377,10 @@ void QWebSocketPrivate::open(const QUrl &url, bool mask)
makeConnections(m_pSocket.data());
QObject::connect(sslSocket, &QSslSocket::encryptedBytesWritten, q,
&QWebSocket::bytesWritten);
+ typedef void (QSslSocket:: *sslErrorSignalType)(const QList<QSslError> &);
+ QObject::connect(sslSocket,
+ static_cast<sslErrorSignalType>(&QSslSocket::sslErrors),
+ q, &QWebSocket::sslErrors);
setSocketState(QAbstractSocket::ConnectingState);
sslSocket->setSslConfiguration(m_configuration.m_sslConfiguration);