1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-20 01:02:44 +02:00
gnupg/sm
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
..
call-agent.c scd: New standard attributes $ENCRKEYID and $SIGNKEYID. 2019-04-03 13:16:22 +02:00
call-dirmngr.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
certchain.c all: fix more spelling errors 2018-10-25 16:53:05 -04:00
certcheck.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
certdump.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
certlist.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
certreqgen-ui.c common: Extend function pubkey_algo_string. 2019-04-02 18:50:55 +02:00
certreqgen.c sm: Fix certificate creation with key on card. 2019-02-21 17:32:39 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
decrypt.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
delete.c sm: Change keydb code to use the keybox locking. 2019-05-14 13:36:08 +02:00
encrypt.c gpg,sm: String changes for compliance diagnostics. 2017-07-28 17:46:43 +02:00
export.c kbx: Unify the fingerprint search modes. 2019-03-14 14:55:06 +01:00
fingerprint.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c sm: Add yet inactive options to support authenticode 2019-04-30 08:28:54 +02:00
gpgsm.h sm: Add yet inactive options to support authenticode 2019-04-30 08:28:54 +02:00
import.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
keydb.c sm: Change keydb code to use the keybox locking. 2019-05-14 13:36:08 +02:00
keydb.h sm: Change keydb code to use the keybox locking. 2019-05-14 13:36:08 +02:00
keylist.c kbx: Unify the fingerprint search modes. 2019-03-14 14:55:06 +01:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
minip12.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
minip12.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
misc.c sm: Prepare algo mapping to handle values > 255. 2019-02-21 08:51:50 +01:00
passphrase.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
passphrase.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
qualified.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
server.c sm: Add OPTION request-origin. 2018-03-23 15:07:56 +01:00
sign.c sm: Add yet inactive options to support authenticode 2019-04-30 08:28:54 +02:00
verify.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00