Home GnuPG
Diffusion GnuPG 8448347b5bde

gpg: Improve keydb handling in the main import function.

Description

gpg: Improve keydb handling in the main import function.

* g10/getkey.c (get_pubkey_byfprint_fast): Factor most code out to ...
(get_keyblock_byfprint_fast): .. new function.
* g10/import.c (revocation_present): s/int rc/gpg_error_t err/.
(import_one): Use get_keyblock_byfprint_fast to get the keyblock and a
handle.  Remove the now surplus keyblock fetch in the merge branch.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 18 2017, 5:52 PM
Parents
rG752cae6dd2ee: gpg: Simplify keydb handling of the main import function.
Branches
Unknown
Tags
Unknown