Home GnuPG

tests/keygen.c: Skip unavailable PK algorithms

Description

tests/keygen.c: Skip unavailable PK algorithms

* tests/keygen.c (show_mpi, check_rsa_keys, check_elg_keys,
  check_dsa_keys, check_generated_ecc_key, check_ecc_keys): Skip tests
  if the required public key algorithm is not available.

When libgcrypt is configured with a non-default --enable-pubkey-ciphers
option, some of the keygen tests cannot be run because the algorithms
are not supported. Disable those using preprocessor macros.

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

Details

Provenance
neverpanicAuthored on Jun 21 2022, 7:00 PM
gniibeCommitted on Jul 1 2022, 9:02 AM
Parents
rC78c0d76f8092: tests/benchmark: Skip unavailable PK algorithms
Branches
Unknown
Tags
Unknown
Tasks
T6048: Test suite fixes with --enable-pubkey-ciphers=ecc