summaryrefslogtreecommitdiffstats
path: root/channels.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-10-02 16:17:00 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-10-02 16:17:00 +1000
commit5dcdd219fb22f74d50c1a18997b72d89b7bf1fe9 (patch)
tree155231845654a480dd19298b2e9030bc21f6ef18 /channels.c
parent6cc310bd5fd4d15ad8194096e88741f7c17a3cbd (diff)
- markus@cvs.openbsd.org 2003/09/23 20:41:11
[channels.c channels.h clientloop.c] move client only agent code to clientloop.c
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c45
1 files changed, 1 insertions, 44 deletions
diff --git a/channels.c b/channels.c
index af2ae18b..060d0f50 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.196 2003/09/19 11:31:33 markus Exp $");
+RCSID("$OpenBSD: channels.c,v 1.197 2003/09/23 20:41:11 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -2838,46 +2838,3 @@ auth_request_forwarding(void)
packet_send();
packet_write_wait();
}
-
-/* This is called to process an SSH_SMSG_AGENT_OPEN message. */
-
-void
-auth_input_open_request(int type, u_int32_t seq, void *ctxt)
-{
- Channel *c = NULL;
- int remote_id, sock;
-
- /* Read the remote channel number from the message. */
- remote_id = packet_get_int();
- packet_check_eom();
-
- /*
- * Get a connection to the local authentication agent (this may again
- * get forwarded).
- */
- sock = ssh_get_authentication_socket();
-
- /*
- * If we could not connect the agent, send an error message back to
- * the server. This should never happen unless the agent dies,
- * because authentication forwarding is only enabled if we have an
- * agent.
- */
- if (sock >= 0) {
- c = channel_new("", SSH_CHANNEL_OPEN, sock, sock,
- -1, 0, 0, 0, "authentication agent connection", 1);
- c->remote_id = remote_id;
- c->force_drain = 1;
- }
- if (c == NULL) {
- packet_start(SSH_MSG_CHANNEL_OPEN_FAILURE);
- packet_put_int(remote_id);
- } else {
- /* Send a confirmation to the remote host. */
- debug("Forwarding authentication connection.");
- packet_start(SSH_MSG_CHANNEL_OPEN_CONFIRMATION);
- packet_put_int(remote_id);
- packet_put_int(c->self);
- }
- packet_send();
-}