mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
Skip a test in a no-dh build
One of the sub-tests in the fipsinstall test corrupts a DH test to confirm that fipsinstall fails. However that is never noticed in a no-dh build - so we just skip that test in a no-dh build. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11582)
This commit is contained in:
parent
a033c9a2e8
commit
a7a7643a53
@ -101,6 +101,10 @@ ok(!run(app(['openssl', 'fipsinstall', '-out', 'fips.cnf', '-module', $infile,
|
||||
"fipsinstall fails when the DRBG CTR result is corrupted");
|
||||
|
||||
# corrupt a KAS test
|
||||
SKIP: {
|
||||
skip "Skipping KAS DH corruption test because of no dh in this build", 1
|
||||
if disabled("dh");
|
||||
|
||||
ok(!run(app(['openssl', 'fipsinstall', '-out', 'fips.conf', '-module', $infile,
|
||||
'-provider_name', 'fips', '-mac_name', 'HMAC',
|
||||
'-macopt', 'digest:SHA256', '-macopt', 'hexkey:00',
|
||||
@ -108,6 +112,7 @@ ok(!run(app(['openssl', 'fipsinstall', '-out', 'fips.conf', '-module', $infile,
|
||||
'-corrupt_desc', 'DH',
|
||||
'-corrupt_type', 'KAT_KA'])),
|
||||
"fipsinstall fails when the kas result is corrupted");
|
||||
}
|
||||
|
||||
# corrupt a Signature test
|
||||
ok(!run(app(['openssl', 'fipsinstall', '-out', 'fips.conf', '-module', $infile,
|
||||
|
Loading…
Reference in New Issue
Block a user