chiark / gitweb /
gpg: Fix searching for mail addresses in keyrings.
authorJustus Winter <justus@g10code.com>
Wed, 25 Jan 2017 15:33:20 +0000 (16:33 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commit557fb4322824777c58a9a0a2391d40d789697b22
treeda39a8c0d9b36b6d22dc36aed2d0462af8a51ea2
parent26130564098c3748d9aa5fa0e5734226cfca787a
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: 2930
Signed-off-by: Justus Winter <justus@g10code.com>
(cherry picked from commit 3f4f20ee6eff052c88647b820d9ecfdbd8df0f40)

Gbp-Pq: Name 0018-gpg-Fix-searching-for-mail-addresses-in-keyrings.patch
g10/keyring.c