From b5652df775efbd1c52eecee5f08e40e600e5d70b Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Fri, 21 Dec 2012 14:02:38 +0100 Subject: SSL: Implement session sharing and use it from QNetworkAccessManager This improves performance since a network round trip can be avoided. Change-Id: I1aaff7e48ef9638cb137de0f43942c3a4dd2884a Initial-patch-by: Markus Goetz Reviewed-by: Richard J. Moore --- src/network/access/qhttpnetworkconnection_p.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/network/access/qhttpnetworkconnection_p.h') diff --git a/src/network/access/qhttpnetworkconnection_p.h b/src/network/access/qhttpnetworkconnection_p.h index 57d40bfcf2..956499ddab 100644 --- a/src/network/access/qhttpnetworkconnection_p.h +++ b/src/network/access/qhttpnetworkconnection_p.h @@ -62,6 +62,7 @@ #include #include #include +#include #include #include @@ -72,6 +73,8 @@ #ifndef QT_NO_HTTP #ifndef QT_NO_SSL +# include +# include # include # include #else @@ -124,6 +127,8 @@ public: void setSslConfiguration(const QSslConfiguration &config); void ignoreSslErrors(int channel = -1); void ignoreSslErrors(const QList &errors, int channel = -1); + QSharedPointer sslContext(); + void setSslContext(QSharedPointer context); #endif private: @@ -234,6 +239,10 @@ public: QList highPriorityQueue; QList lowPriorityQueue; +#ifndef QT_NO_SSL + QSharedPointer sslContext; +#endif + #ifndef QT_NO_BEARERMANAGEMENT QSharedPointer networkSession; #endif -- cgit v1.2.3