diff options
author | Marcus Brinkmann <[email protected]> | 2002-04-24 21:52:47 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2002-04-24 21:52:47 +0000 |
commit | ee6bb32a8bf9adb3d0a48b0d527cda594e49355a (patch) | |
tree | ff9c1c7939f01bd1cc8b0116b87c07235956200f /sm/gpgsm.c | |
parent | * certreqgen.c (gpgsm_genkey): Write status output on success. (diff) | |
download | gnupg-ee6bb32a8bf9adb3d0a48b0d527cda594e49355a.tar.gz gnupg-ee6bb32a8bf9adb3d0a48b0d527cda594e49355a.zip |
2002-04-24 Marcus Brinkmann <[email protected]>
* configure.ac: Check for locale.h.
agent/
2002-04-24 Marcus Brinkmann <[email protected]>
* agent.h (struct opt): Add members display, ttyname, ttytype,
lc_ctype, and lc_messages.
* gpg-agent.c (enum cmd_and_opt_values): Add oDisplay, oTTYname,
oTTYtype, oLCctype, and LCmessages.
(main): Handle these options.
* command.c (option_handler): New function.
(register_commands): Register option handler.
* query.c (start_pinentry): Pass the various display and tty
options to the pinentry.
sm/
2002-04-24 Marcus Brinkmann <[email protected]>
* gpgsm.h (struct opt): New members display, ttyname, ttytype,
lc_ctype, lc_messages.
* gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
oTTYname, oTTYtype, oLCctype, oLCmessages.
(opts): New entries for these options.
(main): Handle these new options.
* call-agent.c (start_agent): Set the various display and tty
parameter after resetting.
Diffstat (limited to '')
-rw-r--r-- | sm/gpgsm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c index 7d21f1c09..f755c02c7 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -83,7 +83,14 @@ enum cmd_and_opt_values { oDebugWait, oEnableSpecialFilenames, + oAgentProgram, + oDisplay, + oTTYname, + oTTYtype, + oLCctype, + oLCmessages, + oDirmngrProgram, @@ -340,6 +347,11 @@ static ARGPARSE_OPTS opts[] = { { oNoOptions, "no-options", 0, "@" }, /* shortcut for --options /dev/null */ { oHomedir, "homedir", 2, "@" }, /* defaults to "~/.gnupg" */ { oAgentProgram, "agent-program", 2 , "@" }, + { oDisplay, "display", 2, "@" }, + { oTTYname, "ttyname", 2, "@" }, + { oTTYtype, "ttytype", 2, "@" }, + { oLCctype, "lc-ctype", 2, "@" }, + { oLCmessages, "lc-messages", 2, "@" }, { oDirmngrProgram, "dirmngr-program", 2 , "@" }, { oNoBatch, "no-batch", 0, "@" }, @@ -842,6 +854,11 @@ main ( int argc, char **argv) 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 oDisplay: opt.display = pargs.r.ret_str; break; + case oTTYname: opt.ttyname = pargs.r.ret_str; break; + case oTTYtype: opt.ttytype = pargs.r.ret_str; break; + case oLCctype: opt.lc_ctype = pargs.r.ret_str; break; + case oLCmessages: opt.lc_messages = pargs.r.ret_str; break; case oDirmngrProgram: opt.dirmngr_program = pargs.r.ret_str; break; case oNoDefKeyring: default_keyring = 0; break; |