tst_QSslCertificate::pkcs12 - skip the test if OpenSSL version >= 3
leaf.p12 is using RC2 for encryption and it's disabled by default in openssl v3. Pick-to: 6.4 6.3 6.2 5.15 Fixes: QTBUG-106017 Change-Id: I4edd0d29506d1e50b2b618b6a00cceeb4b156204 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>bb10
parent
6d93053303
commit
0206eb137f
|
|
@ -14,6 +14,7 @@
|
|||
#include <qscopeguard.h>
|
||||
|
||||
#ifndef QT_NO_OPENSSL
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/obj_mac.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -1377,6 +1378,10 @@ void tst_QSslCertificate::pkcs12()
|
|||
return;
|
||||
}
|
||||
|
||||
#if !defined(QT_NO_OPENSSL) && OPENSSL_VERSION_MAJOR >= 3
|
||||
QSKIP("leaf.p12 is using RC2, which is disabled by default in OpenSSL v >= 3");
|
||||
#endif
|
||||
|
||||
QFile f(testDataDir + QLatin1String("pkcs12/leaf.p12"));
|
||||
bool ok = f.open(QIODevice::ReadOnly);
|
||||
QVERIFY(ok);
|
||||
|
|
|
|||
Loading…
Reference in New Issue