1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00
gnupg/kbx
Werner Koch 5556eca5ac
gpg: Avoid multiple open calls to the keybox file.
* g10/keydb.h (KEYDB_HANDLE): Move typedef to ...
* g10/gpg.h: here.
(struct server_control_s): Add field 'cached_getkey_kdb'.
* g10/gpg.c (gpg_deinit_default_ctrl): Release that keydb handle.
* g10/getkey.c (getkey_end): Cache keydb handle.
(get_pubkey): Use cached keydb handle.
* kbx/keybox-search.c (keybox_search_reset): Use lseek instead of
closing the file.
--

Before this patch a "gpg --check-sigs" opened and closed the keybox
file for almost every signature check.  By caching the keydb handle
and using lseek(2) this can be limited to just 2 times.  This might
speed up things on Windows.

Signed-off-by: Werner Koch <wk@gnupg.org>
2017-03-31 21:27:16 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
kbxutil.c gpg: Remove the use of the signature information from a KBX. 2017-03-30 16:01:55 +02:00
keybox-blob.c gpg: Remove the use of the signature information from a KBX. 2017-03-30 16:01:55 +02:00
keybox-defs.h gpg: Remove the use of the signature information from a KBX. 2017-03-30 16:01:55 +02:00
keybox-dump.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
keybox-errors.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox-file.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
keybox-init.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
keybox-openpgp.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
keybox-search-desc.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
keybox-search.c gpg: Avoid multiple open calls to the keybox file. 2017-03-31 21:27:16 +02:00
keybox-update.c gpg: Remove the use of the signature information from a KBX. 2017-03-30 16:01:55 +02:00
keybox-util.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
keybox.h gpg: Remove the use of the signature information from a KBX. 2017-03-30 16:01:55 +02:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
Manifest The keybox gets now compressed after 3 hours and ephemeral 2004-04-26 08:09:25 +00:00
mkerrors Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00