Home GnuPG
Diffusion GnuPG 2e4e10c1dcd8

gpg: Improve the keyblock cache's transparency.
2e4e10c1dcd8Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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 <neal@g10code.com>
  • GnuPG-bug-id: T2187

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Dec 15 2015, 12:21 PM
Parents
rG0ea186db645d: gpg: Use more descriptive names.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG2e4e10c1dcd8: gpg: Improve the keyblock cache's transparency. (authored by Neal H. Walfield <neal@g10code.com>).Dec 15 2015, 12:21 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:08 PM
neal mentioned this in Unknown Object (Maniphest Task).
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:31 PM
neal mentioned this in Unknown Object (Maniphest Task).