Home GnuPG
Diffusion GnuPG 3f4f20ee6eff

gpg: Fix searching for mail addresses in keyrings.
3f4f20ee6effUnpublished

Unpublished Commit ยท Learn More

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

Description

gpg: Fix searching for mail addresses in keyrings.

* g10/keyring.c (compare_name): Fix KEYDB_SEARCH_MODE_MAIL* searches
in keyrings when the UID is a plain addr-spec.

Previously, 'gpg --list-key "<foo@example.org>"' failed if 1/ the
keyring format is used and 2/ the key's UID is a plain addr-spec
(cf. RFC2822 section 4.3), e.g. 'foo@example.org'.

  • GnuPG-bug-id: T2930
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Jan 25 2017, 4:33 PM
Parents
rG02a39f0d1ed7: tests,w32: Fix GPGME tests requiring a pinentry.
Branches
Unknown
Tags
Unknown