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>
bb10
Mårten Nordheim 2020-10-23 17:31:45 +02:00
parent 40fb97e97f
commit ec258b8291
1 changed files with 9 additions and 0 deletions

View File

@ -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()