summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/other')
-rw-r--r--tests/auto/other/networkselftest/tst_networkselftest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/other/networkselftest/tst_networkselftest.cpp b/tests/auto/other/networkselftest/tst_networkselftest.cpp
index ebdad53e31..b038605db0 100644
--- a/tests/auto/other/networkselftest/tst_networkselftest.cpp
+++ b/tests/auto/other/networkselftest/tst_networkselftest.cpp
@@ -37,6 +37,12 @@
#include "../../network-settings.h"
+#ifndef QT_NO_OPENSSL
+QT_BEGIN_NAMESPACE
+void qt_ForceTlsSecurityLevel();
+QT_END_NAMESPACE
+#endif
+
class tst_NetworkSelfTest: public QObject
{
Q_OBJECT
@@ -335,6 +341,9 @@ static void netChat(int port, const QList<Chat> &chat)
tst_NetworkSelfTest::tst_NetworkSelfTest()
{
+#ifndef QT_NO_OPENSSL
+ qt_ForceTlsSecurityLevel();
+#endif
}
tst_NetworkSelfTest::~tst_NetworkSelfTest()