mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* gpgsm.c: New option --agent-program
* call-agent.c (start_agent): Allow to override the default path to the agent.
This commit is contained in:
parent
99829ef5fb
commit
d9aecd9eb7
4 changed files with 21 additions and 5 deletions
|
@ -77,7 +77,7 @@ enum cmd_and_opt_values {
|
|||
aServer,
|
||||
|
||||
oEnableSpecialFilenames,
|
||||
|
||||
oAgentProgram,
|
||||
|
||||
oTextmode,
|
||||
oFingerprint,
|
||||
|
@ -279,6 +279,8 @@ static ARGPARSE_OPTS opts[] = {
|
|||
{ oNoGreeting, "no-greeting", 0, "@" },
|
||||
{ oNoOptions, "no-options", 0, "@" }, /* shortcut for --options /dev/null */
|
||||
{ oHomedir, "homedir", 2, "@" }, /* defaults to "~/.gnupg" */
|
||||
{ oAgentProgram, "agent-program", 2 , "@" },
|
||||
|
||||
{ oNoBatch, "no-batch", 0, "@" },
|
||||
{ oWithColons, "with-colons", 0, "@"},
|
||||
{ oWithKeyData,"with-key-data", 0, "@"},
|
||||
|
@ -707,6 +709,7 @@ main ( int argc, char **argv)
|
|||
break;
|
||||
case oNoOptions: break; /* no-options */
|
||||
case oHomedir: opt.homedir = pargs.r.ret_str; break;
|
||||
case oAgentProgram: opt.agent_program = pargs.r.ret_str; break;
|
||||
|
||||
case oNoDefKeyring: default_keyring = 0; break;
|
||||
case oNoGreeting: nogreeting = 1; break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue