Home GnuPG
Diffusion GnuPG 935edf88ab29

kbx: Let keydb_search skip unwanted blobs.
935edf88ab29Unpublished

Unpublished Commit · Learn More

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

Description

kbx: Let keydb_search skip unwanted blobs.

* kbx/keybox.h (keybox_blobtype_t): New.
* kbx/keybox-defs.h (BLOBTYPE_*): Replace by KEYBOX_BLOBTYPE_*.
* kbx/keybox-search.c (keybox_search): Add arg want_blobtype and skip
non-matching blobs.
* sm/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_X509 to keybox_search.
* g10/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_PGP to keybox_search.

Without this fix a listing of all keys would fail because the wrong
blob type would be returned for the gpg or gpgsm.

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

Details

Provenance
wernerAuthored on Oct 31 2014, 12:15 PM
Parents
rG28ae8ad70b3b: gpg: Fix --rebuild-keydb-caches.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG935edf88ab29: kbx: Let keydb_search skip unwanted blobs. (authored by Werner Koch <wk@gnupg.org>).Oct 31 2014, 12:15 PM