Home GnuPG
Diffusion GnuPG d2a7f9078a46

gpg: Make invalid primary key algos obvious in key listings.

Description

gpg: Make invalid primary key algos obvious in key listings.

* g10/keylist.c (print_key_line): Print a warning for invalid algos.

Non-OpenPGP compliant keys now show a warning flag on the sec or pub
line like in:

gpg: can't encode a 256 bit MD into a 88 bits frame, algo=8
sec   cv25519 2019-01-30 [INVALID_ALGO]
      4239F3D606A19258E7A88C3F9A3F4F909C5034C5
uid           [ultimate] ffffff

Instead of showing the usage flags "[CE]". Without this patch only
the error message is printed and the reason for it was not immediately
obvious (cv25519 is encryption only but we always consider the primary
key as having the "C" flag).

(cherry picked from commit db87132b10664718b7db6ec1dad584b54d1fb265)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 5 2019, 12:39 PM
Parents
rGb3c8ce9e4343: sm: Print Yubikey attestation extensions with --dump-cert.
Branches
Unknown
Tags
Unknown