Home GnuPG
Diffusion GnuPG 0039d7107bcd

kbx: Unify blob reading functions.

Description

kbx: Unify blob reading functions.

* kbx/keybox-file.c (_keybox_read_blob): Remove.
(_keybox_read_blob2): Rename to ....
(_keybox_read_blob): this.  Make arg options.  Change all callers.
* kbx/keybox-search.c (keybox_search): Factor fopen call out to ...
(open_file): new.
(keybox_seek): Als use open_file.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 1 2017, 11:10 AM
Parents
rG5556eca5acd4: gpg: Avoid multiple open calls to the keybox file.
Branches
Unknown
Tags
Unknown