1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00
gnupg/kbx
Werner Koch 22e274f839
sm: Change keydb code to use the keybox locking.
* kbx/keybox-init.c (keybox_lock): New arg TIMEOUT.  Change all
callers to pass -1 when locking.
* sm/keydb.c (struct resource_item): Remove LOCKANDLE.
(struct keydb_handle): Add KEEP_LOCK.
(keydb_add_resource): Use keybox locking instead of a separate dotlock
for testing whether we can run a compress.
(keydb_release): Reset KEEP_LOCK.
(keydb_lock): Set KEEP_LOCK.
(unlock_all): Take care of KEEP_LOCK.
(lock_all): Use keybox_lock instead of dotlock fucntions.
(keydb_delete): Remove arg UNLOCK.
* sm/delete.c (delete_one): Adjust keydb_delete.  Due to the KEEP_LOCK
the keydb_release takes care of unlocking.
--

This aligns the code more with g10/keydb.c and avoids the separate
calls to dotlock_take.

GnuPG-bug-id: 4505
Signed-off-by: Werner Koch <wk@gnupg.org>
2019-05-14 13:36:08 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
kbxutil.c gpg: Implement searching keys via keygrip. 2019-01-29 20:10:11 +01:00
keybox-blob.c kbx: Add support for 32 byte fingerprints. 2019-03-14 11:26:54 +01:00
keybox-defs.h kbx: Add support for 32 byte fingerprints. 2019-03-14 11:26:54 +01:00
keybox-dump.c kbx: Add support for 32 byte fingerprints. 2019-03-14 11:26:54 +01:00
keybox-errors.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
keybox-file.c kbx: Unify blob reading functions. 2017-04-01 11:10:47 +02:00
keybox-init.c sm: Change keydb code to use the keybox locking. 2019-05-14 13:36:08 +02:00
keybox-openpgp.c kbx: Add support for 32 byte fingerprints. 2019-03-14 11:26:54 +01:00
keybox-search-desc.h kbx: Unify the fingerprint search modes. 2019-03-14 14:55:06 +01:00
keybox-search.c kbx: Unify the fingerprint search modes. 2019-03-14 14:55:06 +01:00
keybox-update.c kbx: Unify blob reading functions. 2017-04-01 11:10:47 +02:00
keybox-util.c kbx: Simplify by removing custom memory functions. 2017-12-22 12:55:46 +01:00
keybox.h sm: Change keydb code to use the keybox locking. 2019-05-14 13:36:08 +02:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
Manifest The keybox gets now compressed after 3 hours and ephemeral 2004-04-26 08:09:25 +00:00
mkerrors all: fix more spelling errors 2018-10-25 16:53:05 -04:00