tst_QSslSocket::ephemeralServerKey - fix for OpenSSL 1.1
The original test is quite unfortunate - it has cipher names hardcoded, and it fails with OpenSSL 1.1 - no matching cipher found for 'RC4-SHA' and QSslContext::initSsl fails with 'Invalid or empty cipher list'. We skip this test entry for 1.1. Change-Id: I810b80a62d9e27a60db71fd412af0c80630d976c Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
4034c3a3d2
commit
410148ef1e
|
|
@ -3685,7 +3685,9 @@ void tst_QSslSocket::ephemeralServerKey_data()
|
|||
QTest::addColumn<QString>("cipher");
|
||||
QTest::addColumn<bool>("emptyKey");
|
||||
|
||||
#if !QT_CONFIG(opensslv11) // 1.1 drops support for RC4-SHA
|
||||
QTest::newRow("NonForwardSecrecyCipher") << "RC4-SHA" << true;
|
||||
#endif // !opensslv11
|
||||
QTest::newRow("ForwardSecrecyCipher") << "ECDHE-RSA-AES256-SHA" << (QSslSocket::sslLibraryVersionNumber() < 0x10002000L);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue