diff options
author | Werner Koch <[email protected]> | 2007-10-01 14:48:39 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-10-01 14:48:39 +0000 |
commit | 31c19d1d685b75377d9ff6dfbc9138ecbd5600b4 (patch) | |
tree | f6630bee0deef3ff050b3ca7dbb55e4951e34372 /agent/command-ssh.c | |
parent | Support the SETQUALITYBAR command of recent pinentries. (diff) | |
download | gnupg-31c19d1d685b75377d9ff6dfbc9138ecbd5600b4.tar.gz gnupg-31c19d1d685b75377d9ff6dfbc9138ecbd5600b4.zip |
Use Assuan socket wrapper calls.
Made socket servers secure under Windows.
Diffstat (limited to '')
-rw-r--r-- | agent/command-ssh.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 4fc9d4df5..6b5087830 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -2818,15 +2818,12 @@ ssh_request_process (ctrl_t ctrl, estream_t stream_sock) /* Start serving client on SOCK_CLIENT. */ void -start_command_handler_ssh (ctrl_t ctrl, int sock_client) +start_command_handler_ssh (ctrl_t ctrl, gnupg_fd_t sock_client) { estream_t stream_sock; gpg_error_t err; int ret; - /* Setup control structure. */ - ctrl->connection_fd = sock_client; - /* Because the ssh protocol does not send us information about the the current TTY setting, we resort here to use those from startup or those explictly set. */ @@ -2843,7 +2840,7 @@ start_command_handler_ssh (ctrl_t ctrl, int sock_client) /* Create stream from socket. */ - stream_sock = es_fdopen (sock_client, "r+"); + stream_sock = es_fdopen (FD2INT(sock_client), "r+"); if (!stream_sock) { err = gpg_error_from_syserror (); |