summaryrefslogtreecommitdiffstats
path: root/common/asshelp.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-11-19 10:31:34 +0100
committerWerner Koch <wk@gnupg.org>2014-11-19 10:47:56 +0100
commit0e7dd40342bd56810c27db1c38c1928f56f43bfd (patch)
tree633cf48590609754cd1858e0ed3b68339d102dfc /common/asshelp.h
parentcommon: Change a string to a simlar one to ease translation. (diff)
downloadgnupg2-0e7dd40342bd56810c27db1c38c1928f56f43bfd.tar.xz
gnupg2-0e7dd40342bd56810c27db1c38c1928f56f43bfd.zip
Add "gpgconf --kill dirmngr" and avoid useless launch before a kill.
* common/asshelp.c (start_new_gpg_agent): Add arg autostart. Change all callers to use 1 for it. (start_new_dirmngr): Ditto. * tools/gpg-connect-agent.c: Add option --no-autostart. (main): Default autostart to 1. (start_agent): Implement no-autostart. * tools/gpgconf-comp.c (gpg_agent_runtime_change): Use --no-autostart. (scdaemon_runtime_change): Ditto. (dirmngr_runtime_change): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/asshelp.h')
-rw-r--r--common/asshelp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/asshelp.h b/common/asshelp.h
index 08c3c8c0a..7b305856b 100644
--- a/common/asshelp.h
+++ b/common/asshelp.h
@@ -58,7 +58,7 @@ start_new_gpg_agent (assuan_context_t *r_ctx,
const char *opt_lc_ctype,
const char *opt_lc_messages,
session_env_t session_env,
- int verbose, int debug,
+ int autostart, int verbose, int debug,
gpg_error_t (*status_cb)(ctrl_t, int, ...),
ctrl_t status_cb_arg);
@@ -69,7 +69,7 @@ start_new_dirmngr (assuan_context_t *r_ctx,
gpg_err_source_t errsource,
const char *homedir,
const char *dirmngr_program,
- int verbose, int debug,
+ int autostart, int verbose, int debug,
gpg_error_t (*status_cb)(ctrl_t, int, ...),
ctrl_t status_cb_arg);