From 3be197881f100d1c3c8f3ce00501d7a32eb51119 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Tue, 30 Apr 2013 14:48:22 +0200 Subject: QSslConfiguration: add API to persist and resume SSL sessions Session tickets can be cached on the client side for hours (e.g. graph.facebook.com: ~ 24 hours, api.twitter.com: 4 hours), because the server does not need to maintain state. We need public API for it so an application can cache the session (e.g. to disk) and resume a session already with the 1st handshake, saving one network round trip. Task-number: QTBUG-20668 Change-Id: I10255932dcd528ee1231538cb72b52b97f9f4a3c Reviewed-by: Richard J. Moore --- src/network/ssl/qssl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network/ssl/qssl.h') diff --git a/src/network/ssl/qssl.h b/src/network/ssl/qssl.h index 2429f3d580..21d03cb703 100644 --- a/src/network/ssl/qssl.h +++ b/src/network/ssl/qssl.h @@ -96,7 +96,8 @@ namespace QSsl { SslOptionDisableCompression = 0x04, SslOptionDisableServerNameIndication = 0x08, SslOptionDisableLegacyRenegotiation = 0x10, - SslOptionDisableSessionSharing = 0x20 + SslOptionDisableSessionSharing = 0x20, + SslOptionDisableSessionPersistence = 0x40 }; Q_DECLARE_FLAGS(SslOptions, SslOption) } -- cgit v1.2.3