diff options
author | Werner Koch <wk@gnupg.org> | 2016-01-13 10:16:27 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-01-13 10:43:34 +0100 |
commit | 160862978628b07ed5150ec2c8abad6af1656bc3 (patch) | |
tree | f46606887c7aa112f56354337c533fcbeb9e30ee /kbx/keybox.h | |
parent | gpg: Make sure to mark a duplicate registered keybox as primary. (diff) | |
download | gnupg2-160862978628b07ed5150ec2c8abad6af1656bc3.tar.xz gnupg2-160862978628b07ed5150ec2c8abad6af1656bc3.zip |
kbx: Implement keybox_lock for use by gpg.
* kbx/keybox-defs.h: Include dotlock.h and logging.h.
(CONST_KB_NAME): Remove. Replace usage by KB_NAME.
(struct keybox_name): Add field "lockhd".
* kbx/keybox-init.c (keybox_register_file): Init LOCKHD.
(keybox_lock): Chnage to return gpg_error_t. Implement locking.
--
The keybox locking for gpg was not implemented - This needs to be
fixed of course.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-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 acd7a4f89..9f91c53bd 100644 --- a/kbx/keybox.h +++ b/kbx/keybox.h @@ -76,7 +76,7 @@ void keybox_pop_found_state (KEYBOX_HANDLE hd); const char *keybox_get_resource_name (KEYBOX_HANDLE hd); int keybox_set_ephemeral (KEYBOX_HANDLE hd, int yes); -int keybox_lock (KEYBOX_HANDLE hd, int yes); +gpg_error_t keybox_lock (KEYBOX_HANDLE hd, int yes); /*-- keybox-file.c --*/ /* Fixme: This function does not belong here: Provide a better |