diff options
author | Shane Kearns <ext-shane.2.kearns@nokia.com> | 2012-01-30 15:52:27 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-01 19:18:12 +0100 |
commit | c5aba0ac17ae6ed8f3847bd30325acdbd1ecaa80 (patch) | |
tree | b06be235f137c62fbfb284b14d21387ada66ad30 /src/network/ssl/qsslsocket_openssl_p.h | |
parent | 755cd58f9c70eba0c67da8b2b504fd7a07a2c4e2 (diff) |
Prevent data loss when an ssl socket is closed by remote
SSL context was destroyed on disconnect. This makes it impossible to
decrypt buffered encrypted data. So if there is encrypted data in the
receive buffers, then don't destroy the ssl context until the socket is
destroyed.
Task-Number: QTBUG-23607
Change-Id: I16a7b4fa006647ec73049c90cdbc72686696850f
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network/ssl/qsslsocket_openssl_p.h')
-rw-r--r-- | src/network/ssl/qsslsocket_openssl_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/ssl/qsslsocket_openssl_p.h b/src/network/ssl/qsslsocket_openssl_p.h index 83f485d32f..b31eae9c97 100644 --- a/src/network/ssl/qsslsocket_openssl_p.h +++ b/src/network/ssl/qsslsocket_openssl_p.h @@ -99,6 +99,7 @@ public: // SSL context bool initSslContext(); + void destroySslContext(); SSL *ssl; SSL_CTX *ctx; EVP_PKEY *pkey; |