Home GnuPG
Diffusion GnuPG 23d8609f4b5e

gpg: Do not return "Legacy Key" from lookup if a key is expired.
23d8609f4b5eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Do not return "Legacy Key" from lookup if a key is expired.

* g10/getkey.c (lookup): Map GPG_ERR_LEGACY_KEY.

If an expired key is directly followed by a legacy key in the keyring,
the lookup function incorrectly returned "legacy key" instead of
"unusable key". We fix it by handling not found identical to a legacy
key if the last finish lookup failed.

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

Details

Provenance
wernerAuthored on Jul 29 2015, 4:10 PM
Parents
rG9502d7f50a08: doc: Document that gpg --edit-key's toggle is a nop.
Branches
Unknown
Tags
Unknown

Event Timeline