gpg: Allow searching for user ids in a keybox.
authorWerner Koch <wk@gnupg.org>
Mon, 7 Jan 2013 14:41:10 +0000 (15:41 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 7 Jan 2013 14:41:10 +0000 (15:41 +0100)
commitfb31462e7e92d4b19256e6fd40b1b6ffcef2676c
tree9ed64f17077ac2734013d2c949b94c97a6ad4544
parent7d00e52bd58d9e40c18dcc0122b2c236ef3318f5
gpg: Allow searching for user ids in a keybox.

* kbx/keybox-search.c (blob_cmp_name): Add arg X509 and adjust for PGP
use.  Change callers.
(blob_cmp_mail): Add arg X509 and find the mailbox offset for PGP.
Chnage callers.
(has_subject_or_alt): Rename to has_username.
(has_username): Allow blobtype PGP.
(has_mail): Ditto.
kbx/keybox-search.c