mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
agent: Keep the session environment for restricted connections.
* agent/command-ssh.c (setup_ssh_env): Move code to ... * agent/gpg-agent.c (agent_copy_startup_env): .. new function. Change calllers. * agent/command.c (start_command_handler): Call that fucntion for restricted connections. -- A remote connection is and should not be able to setup the local session environment. However, unless --keep-display is used we would be left without an environment and thus pinentry can't be used. The fix is the same as used for ssh-agent connection: We use the default environment as used at the startup of the agent. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
aad8963f7b
commit
14601eacb5
5 changed files with 43 additions and 35 deletions
|
@ -56,7 +56,7 @@ struct session_environment_s
|
|||
};
|
||||
|
||||
|
||||
/* A list of environment vribales we pass from the acual user
|
||||
/* A list of environment vribales we pass from the actual user
|
||||
(e.g. gpgme) down to the pinentry. We do not handle the locale
|
||||
settings because they do not only depend on envvars. */
|
||||
static struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue