mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: New option --change-std-env-name.
* common/session-env.c (stdenvnames): Add field "disabled". (INITIAL_ARRAYSIZE): Increase size a bit. (session_env_mod_stdenvnames): New. (session_env_list_stdenvnames): Handle the disabled flag. * agent/gpg-agent.c (oChangeStdEnvName): New. (opts): Add --change-std-env-name. (main): Implement option. -- GnuPG-bug-id: 7522
This commit is contained in:
parent
8c753cb7c9
commit
7a47252516
4 changed files with 60 additions and 7 deletions
|
@ -146,6 +146,7 @@ enum cmd_and_opt_values
|
|||
oAutoExpandSecmem,
|
||||
oListenBacklog,
|
||||
oInactivityTimeout,
|
||||
oChangeStdEnvName,
|
||||
|
||||
oWriteEnvFile,
|
||||
|
||||
|
@ -239,7 +240,7 @@ static gpgrt_opt_t opts[] = {
|
|||
ARGPARSE_s_i (oListenBacklog, "listen-backlog", "@"),
|
||||
ARGPARSE_op_u (oAutoExpandSecmem, "auto-expand-secmem", "@"),
|
||||
ARGPARSE_s_s (oFakedSystemTime, "faked-system-time", "@"),
|
||||
|
||||
ARGPARSE_s_s (oChangeStdEnvName, "change-std-env-name", "@"),
|
||||
|
||||
ARGPARSE_header ("Security", N_("Options controlling the security")),
|
||||
|
||||
|
@ -1299,6 +1300,10 @@ main (int argc, char **argv)
|
|||
case oKeepTTY: opt.keep_tty = 1; break;
|
||||
case oKeepDISPLAY: opt.keep_display = 1; break;
|
||||
|
||||
case oChangeStdEnvName:
|
||||
session_env_mod_stdenvnames (pargs.r.ret_str);
|
||||
break;
|
||||
|
||||
case oSSHSupport:
|
||||
ssh_support = 1;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue