aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keyboxd.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-04-27 04:49:30 +0000
committerNIIBE Yutaka <[email protected]>2022-04-27 04:49:30 +0000
commitbd5dbdb8131cde182c79070e12f9e64a549643cd (patch)
tree50d2acfde4506af445141d03099daa94a6f8d629 /kbx/keyboxd.h
parentgpg: Look up user ID to revoke by UID hash (diff)
downloadgnupg-bd5dbdb8131cde182c79070e12f9e64a549643cd.tar.gz
gnupg-bd5dbdb8131cde182c79070e12f9e64a549643cd.zip
kbx: Fix a race condition which results no status report.
* kbx/keyboxd.h (kbxd_status_printf): New. * kbx/backend-support.c (be_return_pubkey): Use kbxd_status_printf. * kbx/kbxserver.c (kbxd_status_printf): New. * kbxd_start_command_handler (kbxd_start_command_handler): Don't use set_assuan_context_func, because the function pointer is shared by multiple threads. -- GnuPG-bug-id: 5948 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'kbx/keyboxd.h')
-rw-r--r--kbx/keyboxd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kbx/keyboxd.h b/kbx/keyboxd.h
index 3a80f9b64..3fea6addd 100644
--- a/kbx/keyboxd.h
+++ b/kbx/keyboxd.h
@@ -171,6 +171,8 @@ void kbxd_sighup_action (void);
/*-- kbxserver.c --*/
+gpg_error_t kbxd_status_printf (ctrl_t ctrl, const char *keyword,
+ const char *format, ...);
gpg_error_t kbxd_write_data_line (ctrl_t ctrl,
const void *buffer_arg, size_t size);
void kbxd_start_command_handler (ctrl_t, gnupg_fd_t, unsigned int);