aboutsummaryrefslogtreecommitdiffstats
path: root/common/asshelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-08-06 12:28:08 +0000
committerWerner Koch <[email protected]>2019-08-06 12:57:07 +0000
commit0611f548bcd3c772084d6c3111dc88a09a67f65a (patch)
treed78e418c5a4ecdb6ed504cf9082e78cf266837b5 /common/asshelp.h
parentcommon: Remove code duplication for service starting. (diff)
downloadgnupg-0611f548bcd3c772084d6c3111dc88a09a67f65a.tar.gz
gnupg-0611f548bcd3c772084d6c3111dc88a09a67f65a.zip
tools: New option --keyboxd for gpg-connect-agent.
* configure.ac: New option --keyboxd-pgm. (KEYBOXD_NAME, KEYBOXD_DISP_NAME): New ac_defines. * common/util.h: Add substitutes for new error codes. (GNUPG_MODULE_NAME_KEYBOXD): New. * common/homedir.c (gnupg_module_name): Support GNUPG_MODULE_NAME_KEYBOXD. * common/asshelp.c (SECS_TO_WAIT_FOR_KEYBOXD): New. (wait_for_sock): Support keyboxd. (start_new_service): Ditto. (start_new_keyboxd): New. * tools/gpg-connect-agent.c: New options --keyboxd and --keyboxd-program. (start_agent): Implement new option. -- This change allows us to test the new keyboxd using our standard helper. It also provides the necessary code to start keyboxd on the fly. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/asshelp.h')
-rw-r--r--common/asshelp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/asshelp.h b/common/asshelp.h
index a04a0775c..b2f4e538f 100644
--- a/common/asshelp.h
+++ b/common/asshelp.h
@@ -65,6 +65,16 @@ start_new_gpg_agent (assuan_context_t *r_ctx,
gpg_error_t (*status_cb)(ctrl_t, int, ...),
ctrl_t status_cb_arg);
+/* This function is used to connect to the keyboxd. If needed the
+ * keyboxd is started. */
+gpg_error_t
+start_new_keyboxd (assuan_context_t *r_ctx,
+ gpg_err_source_t errsource,
+ const char *keyboxd_program,
+ int autostart, int verbose, int debug,
+ gpg_error_t (*status_cb)(ctrl_t, int, ...),
+ ctrl_t status_cb_arg);
+
/* This function is used to connect to the dirmngr. On some platforms
the function is able starts a dirmngr process if needed. */
gpg_error_t