summaryrefslogtreecommitdiffstats
path: root/src/network/ssl/qssl.h
diff options
context:
space:
mode:
authorPeter Hartmann <phartmann@blackberry.com>2013-04-30 14:48:22 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-10 09:15:55 +0200
commit3be197881f100d1c3c8f3ce00501d7a32eb51119 (patch)
treef37ff774e4182560f45f9a2c85efe25bf43cce3f /src/network/ssl/qssl.h
parent2116f9904afca7b3942433269b66a9756d5876bc (diff)
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 <rich@kde.org>
Diffstat (limited to 'src/network/ssl/qssl.h')
-rw-r--r--src/network/ssl/qssl.h3
1 files changed, 2 insertions, 1 deletions
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)
}