Home GnuPG

tests/basic: Skip non-FIPS tests in FIPS mode

Description

tests/basic: Skip non-FIPS tests in FIPS mode

* tests/basic.c (check_pubkey): Skip non-FIPS tests in FIPS mode, fixes
  a logic error previously introduced in e9698002.

e96980022e5ec079c9d4e3492eb6a1131c68e0f2 did change the behavior of
tests/basic.c to actually run non-FIPS tests in FIPS mode because the
'continue' statement was moved into the else block.

This fails when libgcrypt is configured, for example, without support
for RSA.

  • GnuPG-bug-id: T6048
  • Signed-off-by: Clemens Lang <cllang@redhat.com>

Details

Provenance
neverpanicAuthored on Jul 5 2022, 5:31 PM
gniibeCommitted on Jul 6 2022, 2:16 AM
Parents
rCe2a7a0c9f5d2: kdf: Fix memory leak on error.
Branches
Unknown
Tags
Unknown
Tasks
T6048: Test suite fixes with --enable-pubkey-ciphers=ecc