kbx: Unify blob reading functions.
authorWerner Koch <wk@gnupg.org>
Sat, 1 Apr 2017 09:10:47 +0000 (11:10 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 1 Apr 2017 09:10:47 +0000 (11:10 +0200)
commit0039d7107bcdfce6f3b02b46ff0495cfba07882a
treec68d3fb046ecc0a03e37a18b2ed54113bcb2b613
parent5556eca5acd46983bff0b38a1ffbc2f07fbaba9f
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>
kbx/keybox-defs.h
kbx/keybox-dump.c
kbx/keybox-file.c
kbx/keybox-search.c
kbx/keybox-update.c