1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-05 23:07:49 +02:00
gnupg/agent
Werner Koch 5105c8d2d3 ssh: Add support for Putty.
* agent/gpg-agent.c [W32]: Include Several Windows header.
(opts): Change help text for enable-ssh-support.
(opts, main): Add option --enable-putty-support
(putty_support, PUTTY_IPC_MAGIC, PUTTY_IPC_MAXLEN): New for W32.
(agent_init_default_ctrl): Add and asssert call.
(putty_message_proc, putty_message_thread): New.
(handle_connections) [W32]: Start putty message thread.
* common/sysutils.c (w32_get_user_sid): New for W32 only
* tools/gpgconf-comp.c (gc_options_gpg_agent): Add
--enable-ssh-support and --enable-putty-support.  Make the
configuration group visible at basic level.
* agent/command-ssh.c (serve_mmapped_ssh_request): New for W32 only.
--

This patch enables support for Putty.  It has been tested with Putty
0.62 using an Unix created ssh key copied to the private-keys-v1.d
directory on Windows and with a manually crafted sshcontrol file.  It
also works with a smartcard key.

May thanks to gniibe who implemented a proxy in Python to test the
putty/gpg-agent communication.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 9f32499f99)

Resolved conflicts:
	NEWS
	agent/agent.h
	agent/gpg-agent.c: Convert from pth to npth.
	common/sysutils.c
	common/sysutils.h
2014-03-07 09:48:10 +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 ssh: Add support for Putty. 2014-03-07 09:48:10 +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 ssh: Add support for Putty. 2014-03-07 09:48:10 +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 Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02: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