diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-10-31 09:31:25 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-31 11:52:27 +0100 |
commit | 3501d4e9c315af97f0d7878d1af7f4300a815ea3 (patch) | |
tree | d8ada550d4ef45aad87bc44150b4a36218e06a50 /src/websockets/qwebsocket_p.h | |
parent | 7a156a994dd093de80289574d0b542d59a5dd955 (diff) | |
download | qtwebsockets-3501d4e9c315af97f0d7878d1af7f4300a815ea3.tar.gz |
Implement of secure web sockets
Change-Id: I1f96d5e4e327eae211fd6b458168e1f7607e2dcf
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket_p.h')
-rw-r--r-- | src/websockets/qwebsocket_p.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket_p.h b/src/websockets/qwebsocket_p.h index b2dcdb8..90543e3 100644 --- a/src/websockets/qwebsocket_p.h +++ b/src/websockets/qwebsocket_p.h @@ -35,6 +35,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #ifndef QT_NO_NETWORKPROXY #include <QNetworkProxy> #endif +#ifndef QT_NO_SSL +#include <QSslConfiguration> +#include <QSslError> +#endif #include <QTime> #include "qwebsocketprotocol.h" @@ -98,6 +102,12 @@ public: qint64 write(const QString &message); //send data as text qint64 write(const QByteArray &data); //send data as binary +#ifndef QT_NO_SSL + void ignoreSslErrors(const QList<QSslError> &errors); + void setSslConfiguration(const QSslConfiguration &sslConfiguration); + QSslConfiguration sslConfiguration() const; +#endif + public Q_SLOTS: void close(QWebSocketProtocol::CloseCode closeCode, QString reason); void open(const QUrl &url, bool mask); @@ -113,6 +123,10 @@ private Q_SLOTS: private: QWebSocket * const q_ptr; +#ifndef QT_NO_SSL + QSslConfiguration m_sslConfiguration; + QList<QSslError> m_ignoredSslErrors; +#endif QWebSocketPrivate(QTcpSocket *pTcpSocket, QWebSocketProtocol::Version version, QWebSocket *pWebSocket, QObject *parent = Q_NULLPTR); void setVersion(QWebSocketProtocol::Version version); |