summaryrefslogtreecommitdiffstats
path: root/tests/auto/network
diff options
context:
space:
mode:
authorRichard Moore <rich@kde.org>2011-11-27 12:45:30 +0000
committerQt by Nokia <qt-info@nokia.com>2011-11-29 14:00:01 +0100
commit3d3fdcd3a588722b0004f4ef0c91f01ebc6c7b96 (patch)
treeb53ad5aac8d2474602eab54741ac2f29243ae08b /tests/auto/network
parent79923f5b32f0e0b745d5465d73fe13c43bcbbd41 (diff)
Make the default ssloptions testable.
Centralise the specification of the default ssloptions to make the code clearer and more testable. Change-Id: I4f4bae72736dd063ee4cd64c6375e82d0600a105 Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com> Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'tests/auto/network')
-rw-r--r--tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
index e742c229c1..378aff924d 100644
--- a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
@@ -58,6 +58,7 @@
#ifndef QT_NO_OPENSSL
#include "private/qsslsocket_openssl_p.h"
#include "private/qsslsocket_openssl_symbols_p.h"
+#include "private/qsslconfiguration_p.h"
#endif
#include "../../../network-settings.h"
@@ -2081,6 +2082,10 @@ void tst_QSslSocket::sslOptions()
return;
QCOMPARE(QSslSocketBackendPrivate::setupOpenSslOptions(QSsl::SecureProtocols,
+ QSslConfigurationPrivate::defaultSslOptions),
+ long(SSL_OP_ALL|SSL_OP_NO_SSLv2));
+
+ QCOMPARE(QSslSocketBackendPrivate::setupOpenSslOptions(QSsl::SecureProtocols,
QSsl::SslOptionDisableEmptyFragments
|QSsl::SslOptionDisableLegacyRenegotiation),
long(SSL_OP_ALL|SSL_OP_NO_SSLv2));