aboutsummaryrefslogtreecommitdiffstats
path: root/tools/card-call-scd.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-08-29 11:18:13 +0000
committerWerner Koch <[email protected]>2023-08-29 11:18:13 +0000
commita430f2254999383d48d3891a79623a4b33e7ce2d (patch)
treebb5112359a5e1f2d607b9bba24c1fa5331925508 /tools/card-call-scd.c
parentagent: Add agent_kick_the_loop function. (diff)
downloadgnupg-a430f2254999383d48d3891a79623a4b33e7ce2d.tar.gz
gnupg-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 'tools/card-call-scd.c')
-rw-r--r--tools/card-call-scd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/card-call-scd.c b/tools/card-call-scd.c
index 27d8ad961..08f951331 100644
--- a/tools/card-call-scd.c
+++ b/tools/card-call-scd.c
@@ -299,7 +299,8 @@ start_agent (unsigned int flags)
opt.agent_program,
opt.lc_ctype, opt.lc_messages,
opt.session_env,
- opt.autostart, opt.verbose, DBG_IPC,
+ opt.autostart?ASSHELP_FLAG_AUTOSTART:0,
+ opt.verbose, DBG_IPC,
NULL, NULL);
if (!opt.autostart && gpg_err_code (err) == GPG_ERR_NO_AGENT)
{