diff options
| author | NIIBE Yutaka <[email protected]> | 2025-10-22 01:41:34 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2025-10-22 01:41:34 +0000 |
| commit | a0beed35d6c6be02414bb28fc7fa00758b8f5789 (patch) | |
| tree | 572fc907c2dc0d8440e84d01dc392d8ecade8d61 /kbx/keybox.h | |
| parent | po: Update Japanese Translation. (diff) | |
| download | gnupg-a0beed35d6c6be02414bb28fc7fa00758b8f5789.tar.gz gnupg-a0beed35d6c6be02414bb28fc7fa00758b8f5789.zip | |
kbx,gpg,gpgsm: Introduce keybox_compress_when_no_other_users.
* kbx/keybox.h (keybox_compress_when_no_other_users): Rename from
keybox_compress, changing the arguments and the return type.
* kbx/keybox-update.c (keybox_compress_when_no_other_users): Open the
HD internally and make sure all resources are closed before unlocking.
* g10/keydb.c (keydb_add_resource): Simply call
keybox_compress_when_no_other_users which handles locking internally.
* sm/keydb.c (keydb_add_resource): Likewise.
--
GnuPG-bug-id: 7855
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'kbx/keybox.h')
| -rw-r--r-- | kbx/keybox.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kbx/keybox.h b/kbx/keybox.h index 5aa0de57d..2812c06df 100644 --- a/kbx/keybox.h +++ b/kbx/keybox.h @@ -119,7 +119,7 @@ int keybox_update_cert (KEYBOX_HANDLE hd, ksba_cert_t cert, int keybox_set_flags (KEYBOX_HANDLE hd, int what, int idx, unsigned int value); int keybox_delete (KEYBOX_HANDLE hd); -int keybox_compress (KEYBOX_HANDLE hd); +void keybox_compress_when_no_other_users (void *token, int for_openpgp); /*-- --*/ |
