summaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-02-27 10:35:46 +0100
committerWerner Koch <wk@gnupg.org>2024-02-27 10:36:22 +0100
commit962058f704867082d6d00f6467a79c78e41169ca (patch)
tree4cdb21422cdd037add8db508644ac39483cc8264 /g10/options.h
parentagent: Allow GET_PASSPHRASE in restricted mode. (diff)
downloadgnupg2-962058f704867082d6d00f6467a79c78e41169ca.tar.xz
gnupg2-962058f704867082d6d00f6467a79c78e41169ca.zip
Allow tilde expansion for the foo-program options.
* agent/gpg-agent.c (parse_rereadable_options): Use make_filename_try for opt.pinentry_program. Change definition accordingly. * g10/gpg.c (main): Use make_filename for agent_program, dirmngr_program, and keyboxd_program. Change definition accordingly. * sm/gpgsm.c (main): Ditto. * tools/gpg-card.c (parse_arguments): Ditto. * tools/gpg-connect-agent.c (main): Ditto. * tools/gpg-wks-client.c (parse_arguments): Likewise. Do it also for option --output. (process_confirmation_request): Print a note for a successful sent. -- GnuPG-bug-id: 7017
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/options.h b/g10/options.h
index 1e1110334..07516aab1 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -126,9 +126,9 @@ struct
int marginals_needed;
int completes_needed;
int max_cert_depth;
- const char *agent_program;
- const char *keyboxd_program;
- const char *dirmngr_program;
+ char *agent_program;
+ char *keyboxd_program;
+ char *dirmngr_program;
int disable_dirmngr;
const char *def_new_key_algo;