summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2014-04-10 16:28:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-14 11:30:57 +0200
commitff9afeed512e20e0fe19b4583c89df3802064b50 (patch)
treeabb4bad9ca6ae6c69b5a7de80f6f699b8badf5ef /src/network
parentbab494e4d046f5617d19f5fec35eeff94377c51f (diff)
Fix build against older OpenSSL.
The declaration of q_SSL_ctrl is ifdefed, so ifdef it's usage too. Change-Id: I99a53af6f4f24ed991d39ab89f18e03b8f38c617 Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/ssl/qsslsocket_openssl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp
index 1b3928fdfb..f9f7d0b35d 100644
--- a/src/network/ssl/qsslsocket_openssl.cpp
+++ b/src/network/ssl/qsslsocket_openssl.cpp
@@ -1438,8 +1438,10 @@ void QSslSocketBackendPrivate::continueHandshake()
if (readBufferMaxSize)
plainSocket->setReadBufferSize(readBufferMaxSize);
+#if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)
if (q_SSL_ctrl((ssl), SSL_CTRL_GET_SESSION_REUSED, 0, NULL))
configuration.peerSessionShared = true;
+#endif
#ifdef QT_DECRYPT_SSL_TRAFFIC
if (ssl->session && ssl->s3) {