summaryrefslogtreecommitdiffstats
path: root/kbx/keybox.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-01-13 10:16:27 +0100
committerWerner Koch <wk@gnupg.org>2016-01-13 10:43:34 +0100
commit160862978628b07ed5150ec2c8abad6af1656bc3 (patch)
treef46606887c7aa112f56354337c533fcbeb9e30ee /kbx/keybox.h
parentgpg: Make sure to mark a duplicate registered keybox as primary. (diff)
downloadgnupg2-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.h2
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