summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-10-23 17:31:45 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-10-26 09:30:36 +0200
commitec258b82917e1cbae25854ed38b7f81598644730 (patch)
treeeb37e4703d152edea2c34d347152ae1476824118 /tests/auto/other
parent40fb97e97f550b8afd13ecc3a038d9d0c2d82bbb (diff)
QSsl: Further work around to pass network test
Our tls certificate/key are a bit on the old side and need to be updated. But for now let's lower the openssl level. In this case openssl complains about the server's key used for DHE being too short. Task-number: QTBUG-86187 Change-Id: I142a7d52f7599f60b8f4f3ff3ac5ce61fed06b4c Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
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()