diff options
author | Neal H. Walfield <[email protected]> | 2015-12-15 11:21:30 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-12-15 11:21:30 +0000 |
commit | 2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41 (patch) | |
tree | eb1c054a94fc82708178c618d30e0dc31760697f /common/utf8conv.c | |
parent | gpg: Use more descriptive names. (diff) | |
download | gnupg-2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41.tar.gz gnupg-2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41.zip |
gpg: Improve the keyblock cache's transparency.
* kbx/keybox-search.c (keybox_offset): New function.
* g10/keydb.c (struct keyblock_cache): Add fields resource and offset.
(keyblock_cache_clear): Reset HD->KEYBLOCK_CACHE.RESOURCE and
HD->KEYBLOCK_CACHE.OFFSET.
(keydb_search): Don't use the cached result if it comes before the
current file position. When caching an entry, also record the
position at which it was found.
--
Signed-off-by: Neal H. Walfield <[email protected]>
GnuPG-bug-id: 2187
Diffstat (limited to 'common/utf8conv.c')
0 files changed, 0 insertions, 0 deletions