gpg: Improve the keyblock cache's transparency.
authorNeal H. Walfield <neal@g10code.com>
Tue, 15 Dec 2015 12:09:27 +0000 (13:09 +0100)
committerNeal H. Walfield <neal@g10code.com>
Tue, 15 Dec 2015 12:09:50 +0000 (13:09 +0100)
commitf369efd6712148dc7ed40dba6d1ff5b0e169431a
tree49ee59d35181b65a7f7062b6235db207870020d7
parent2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41
gpg: Improve the keyblock cache's transparency.

* kbx/keybox-search.c (keybox_seek): New function.
* g10/keydb.c (keydb_search): When reading from the cache, seek to
just after the cached record.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
g10/keydb.c
kbx/keybox-search.c
kbx/keybox.h