aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/backend-kbx.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-10-22 01:52:52 +0000
committerNIIBE Yutaka <[email protected]>2025-10-22 01:52:52 +0000
commit4a2dda2002c42fa541dacd142093c89476df606d (patch)
tree2d16bc08c7bf4135536e5ae1fb8c33bb5fa66b94 /kbx/backend-kbx.c
parentgpg,gpgsm: No more internal-lock when KEEP_LOCK is enabled. (diff)
downloadgnupg-4a2dda2002c42fa541dacd142093c89476df606d.tar.gz
gnupg-4a2dda2002c42fa541dacd142093c89476df606d.zip
kbx,gpg,gpgsm: Add FP-close method for keydb to close before unlock.
* kbx/keybox.h (keybox_fp_close): New. * kbx/keybox-init.c (keybox_fp_close): New. (keybox_release): Don't close FP here. * kbx/keybox-update.c (keybox_compress_when_no_other_users): Use keybox_fp_close. * kbx/backend-kbx.c (be_kbx_release_kbx_hd): Follow the change. * g10/keyring.h (keyring_fp_close): New. * g10/keyring.c (keyring_fp_close): New. (keyring_release): Don't close IOBUF here. (keyring_rebuild_cache): Use keyring_fp_close. * g10/keydb.c (do_fp_close): New. (unlock_all): Close FP before unlocking. * sm/keydb.c (do_fp_close): New. (unlock_all): Close FP before unlocking. -- GnuPG-bug-id: 7855 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'kbx/backend-kbx.c')
-rw-r--r--kbx/backend-kbx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kbx/backend-kbx.c b/kbx/backend-kbx.c
index 7674cdf2c..2d9685b3c 100644
--- a/kbx/backend-kbx.c
+++ b/kbx/backend-kbx.c
@@ -222,6 +222,7 @@ be_kbx_release_resource (ctrl_t ctrl, backend_handle_t hd)
void
be_kbx_release_kbx_hd (KEYBOX_HANDLE kbx_hd)
{
+ keybox_fp_close (kbx_hd);
keybox_release (kbx_hd);
}