Home GnuPG
Diffusion GnuPG 60bc518645d3

g10: Make the keyblock cache per-handle rather than global.
60bc518645d3Unpublished

Unpublished Commit ยท Learn More

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

Description

g10: Make the keyblock cache per-handle rather than global.

* g10/keydb.c (keyblock_cache): Don't declare this variable.  Instead...
(struct keyblock_cache): ... turn its type into this first class
object...
(struct keydb_handle): ... and instantiate it once per database
handle.  Update all users.
(keydb_rebuild_caches): Don't invalidate the keyblock cache.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Aug 31 2015, 1:57 PM
Parents
rGf076fa190e09: g10: If iobuf_seek fails when reading from the cache, do a hard read.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG60bc518645d3: g10: Make the keyblock cache per-handle rather than global. (authored by Neal H. Walfield <neal@g10code.com>).Sep 2 2015, 10:52 AM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:07 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:30 PM