From 31c19d1d685b75377d9ff6dfbc9138ecbd5600b4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 1 Oct 2007 14:48:39 +0000 Subject: Use Assuan socket wrapper calls. Made socket servers secure under Windows. --- agent/command-ssh.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'agent/command-ssh.c') 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 (); -- cgit v1.2.3