1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-10 23:49:50 +02:00
gnupg/agent
Werner Koch 90688b29f3 agent: Fix UPDATESTARTUPTTY for ssh.
* agent/command-ssh.c (setup_ssh_env): Fix env setting.
--

gniibe reported this to gnupg-devel on 2012-07-04:

  [...]
  (2) UPDATESTARTUPTTY doesn't work to switch TTY for pinentry for
      SSH.

  [...]

  Current implementation:

      In the function start_command_handler_ssh, the logic puts
      priority on ctrl->session_env which is initialized by
      agent_init_default_ctrl.  There are always GPG_TTY and TERM
      defined, because lines around 968 in gpg-agent.c, it says:

  	/* Make sure that we have a default ttyname. */

      While UPDATESTARTUPTTY updates opt.startup_env, it doesn't
      affect at all.

  Here is a patch to point the issue.  Tested and works for me.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 9f5578c29a)
2014-03-07 09:59:32 +01:00
..
agent.h ssh: Add support for Putty. 2014-03-07 09:48:10 +01:00
cache.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
call-pinentry.c Use has_leading_keyword in the assuan callbacks. 2013-02-22 10:56:13 +01:00
call-scd.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command-ssh.c agent: Fix UPDATESTARTUPTTY for ssh. 2014-03-07 09:59:32 +01:00
command.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
cvt-openpgp.c Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02: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 agent: Fix agent_is_eddsa_key. 2014-01-16 09:07:11 +09:00
genkey.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: Make --allow-mark-trusted the default. 2014-03-07 09:48:26 +01:00
keyformat.txt Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02:00
learncard.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
Makefile.am Fix Makefile regression. 2013-06-26 23:23:18 +02:00
pkdecrypt.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
pksign.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
preset-passphrase.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
protect-tool.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
protect.c gpg: Rework ECC support and add experimental support for Ed25519. 2013-11-15 09:01:11 +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