diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-02-06 19:58:09 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-07 18:03:30 +0100 |
commit | f7b5e9bce59c5dfdd9cc8cc2f14bbb3c6baa70d7 (patch) | |
tree | 16dcb917fd6377366792115f0bc7130695066b15 /src | |
parent | 35a099243403ee0521474f9c53678c6f4420969c (diff) | |
download | qtwebsockets-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/websockets/qwebsocket_p.cpp | 4 |
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); |