diff options
author | Werner Koch <wk@gnupg.org> | 2023-08-29 13:18:13 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2023-08-29 13:18:13 +0200 |
commit | a430f2254999383d48d3891a79623a4b33e7ce2d (patch) | |
tree | bb5112359a5e1f2d607b9bba24c1fa5331925508 /sm/call-dirmngr.c | |
parent | agent: Add agent_kick_the_loop function. (diff) | |
download | gnupg2-a430f2254999383d48d3891a79623a4b33e7ce2d.tar.xz gnupg2-a430f2254999383d48d3891a79623a4b33e7ce2d.zip |
common: Prepare for more flags in start_new_service.
* common/asshelp.h (ASSHELP_FLAG_AUTOSTART): New.
* common/asshelp.c (start_new_service): Rename arg autostart to flags
and adjust checks.
(start_new_gpg_agent): Likewise. Change all callers.
(start_new_keyboxd): Likewise. Change all callers.
(start_new_dirmngr): Likewise. Change all callers.
--
It is easier to have a generic flags arg instead of adding more and
more dedicated args. verbose and debug are kept as they are because
they are not boolean.
Diffstat (limited to 'sm/call-dirmngr.c')
-rw-r--r-- | sm/call-dirmngr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/call-dirmngr.c b/sm/call-dirmngr.c index 7fe7a68f5..22580bd12 100644 --- a/sm/call-dirmngr.c +++ b/sm/call-dirmngr.c @@ -228,7 +228,8 @@ start_dirmngr_ext (ctrl_t ctrl, assuan_context_t *ctx_r) err = start_new_dirmngr (&ctx, GPG_ERR_SOURCE_DEFAULT, opt.dirmngr_program, - opt.autostart, opt.verbose, DBG_IPC, + opt.autostart?ASSHELP_FLAG_AUTOSTART:0, + opt.verbose, DBG_IPC, gpgsm_status2, ctrl); if (!opt.autostart && gpg_err_code (err) == GPG_ERR_NO_DIRMNGR) { |