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. Fixes: QTBUG-106017 Change-Id: I4edd0d29506d1e50b2b618b6a00cceeb4b156204 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 0206eb137fcf3239b8657a80a136f6dba77752da) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7e804fb106
commit
277b44ab6d
@ -14,6 +14,7 @@
|
|||||||
#include <qscopeguard.h>
|
#include <qscopeguard.h>
|
||||||
|
|
||||||
#ifndef QT_NO_OPENSSL
|
#ifndef QT_NO_OPENSSL
|
||||||
|
#include <openssl/opensslv.h>
|
||||||
#include <openssl/obj_mac.h>
|
#include <openssl/obj_mac.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1377,6 +1378,10 @@ void tst_QSslCertificate::pkcs12()
|
|||||||
return;
|
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"));
|
QFile f(testDataDir + QLatin1String("pkcs12/leaf.p12"));
|
||||||
bool ok = f.open(QIODevice::ReadOnly);
|
bool ok = f.open(QIODevice::ReadOnly);
|
||||||
QVERIFY(ok);
|
QVERIFY(ok);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user