Home GnuPG
Diffusion GnuPG d3d640b9cc98

gpg: Disable keydb handle caching

Description

gpg: Disable keydb handle caching

* g10/getkey.c (getkey_end): Disable caching of the open keydb
handle.

This created a big regression for Windows because the keyring
is only released after the global ctrl is released. So if an operation
does a getkey and then tries to modify the keyring it will fail on
Windows with a sharing violation. We need to modify all
keyring write operations to also take the ctrl and close the
cached_getkey_kdb handle to make writing work. See:
https://dev.gnupg.org/T3097

  • GnuPG-Bug-Id: T3097
  • Signed-off-by: Andre Heinecke <aheinecke@intevation.de>

Details

Provenance
aheineckeAuthored on May 30 2017, 10:22 AM
Parents
rG996544626ea4: agent: Fix memory leaks.
Branches
Unknown
Tags
Unknown
Tasks
T3097: Fix keyring handle caching for windows