1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00
gnupg/agent
Werner Koch 14601eacb5 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>
2014-12-19 13:07:09 +01:00
..
agent.h agent: Keep the session environment for restricted connections. 2014-12-19 13:07:09 +01:00
cache.c gpg: Improve passphrase caching. 2014-09-17 15:12:08 +02:00
call-pinentry.c agent: Support pinentries with integrated repeat passphrase feature. 2014-10-24 20:40:12 +02:00
call-scd.c agent: Replace some sprintf. 2014-12-02 14:13:53 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command-ssh.c agent: Keep the session environment for restricted connections. 2014-12-19 13:07:09 +01:00
command.c agent: Keep the session environment for restricted connections. 2014-12-19 13:07:09 +01:00
cvt-openpgp.c Change a couple of files to use abbreviated copyright notes. 2014-11-04 16:28:03 +01:00
cvt-openpgp.h Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02:00
divert-scd.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
findkey.c gpg: Improve passphrase caching. 2014-09-17 15:12:08 +02:00
genkey.c agent: Support pinentries with integrated repeat passphrase feature. 2014-10-24 20:40:12 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: Keep the session environment for restricted connections. 2014-12-19 13:07:09 +01:00
keyformat.txt gpg: Finish experimental support for Ed25519. 2014-05-07 13:27:43 +02:00
learncard.c gpg: Let --card--status create a shadow key (card key stub). 2014-12-12 12:47:28 +01:00
Makefile.am Remove use of gnulib (part 1) 2014-11-11 10:13:10 +01:00
pkdecrypt.c agent: Replace some sprintf. 2014-12-02 14:13:53 +01:00
pksign.c Change a couple of files to use abbreviated copyright notes. 2014-11-04 16:28:03 +01:00
preset-passphrase.c w32: Include winsock2.h to silence warnings. 2014-03-07 14:18:43 +01:00
protect-tool.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
protect.c Change a couple of files to use abbreviated copyright notes. 2014-11-04 16:28:03 +01:00
t-protect.c Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c agent: Make --allow-mark-trusted the default. 2014-03-07 09:48:26 +01:00
w32main.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00