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>
Tue, 14 Feb 2017 00:29:34 +0000 (00:29 +0000)
commit17f405afcc7d2e1d3c101936676159dbc339ba07
treeff1f4c3a426340d2b8be1b963e5df8364b813f1e
parent41b9c2c928bbee68843a76bb465b68b3daa3e57d
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