agent: Fix binary vs. text mode problem in ssh.
authorWerner Koch <wk@gnupg.org>
Wed, 3 Jul 2013 11:10:29 +0000 (13:10 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 3 Jul 2013 11:10:29 +0000 (13:10 +0200)
commited056d67c7c93306b68829f83a2565e978dcfd9b
treeef3675a7d4db4de43bfdce5ffa218848716e642e
parent27e403bff7a6e46a390ae5f3d63ea63701d1435d
agent: Fix binary vs. text mode problem in ssh.

* agent/command-ssh.c (file_to_buffer)
(ssh_handler_request_identities): Open streams in binary mode.
(start_command_handler_ssh): Factor some code out to ..
(setup_ssh_env): new function.
--

This is for now a theoretical fix because there is no ssh client yet
which uses the GnuPG style IPC.  OpenSSL for Cygwin uses only a quite
similar one.  gniibe suggested to implement that IPC style in
Libassuan so that a Cygwin version of OpenSSL may be used with GnuPG.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/command-ssh.c