summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2017-05-30 14:23:52 +0000
committerDamien Miller <djm@mindrot.org>2017-05-31 10:50:05 +1000
commit2ae666a8fc20b3b871b2f1b90ad65cc027336ccd (patch)
treef13f1c949ae60c16160acebbfb680c3dc7b13fe5 /clientloop.c
parent94583beb24a6c5fd19cedb9104ab2d2d5cd052b6 (diff)
upstream commit
protocol handlers all get struct ssh passed; ok djm@ Upstream-ID: 0ca9ea2a5d01a6d2ded94c5024456a930c5bfb5d
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/clientloop.c b/clientloop.c
index 367b682ff..0020637e8 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.296 2017/05/03 21:08:09 naddy Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.297 2017/05/30 14:23:52 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -459,7 +459,7 @@ client_check_window_change(void)
459} 459}
460 460
461static int 461static int
462client_global_request_reply(int type, u_int32_t seq, void *ctxt) 462client_global_request_reply(int type, u_int32_t seq, struct ssh *ssh)
463{ 463{
464 struct global_confirm *gc; 464 struct global_confirm *gc;
465 465
@@ -1642,7 +1642,7 @@ client_request_tun_fwd(int tun_mode, int local_tun, int remote_tun)
1642 1642
1643/* XXXX move to generic input handler */ 1643/* XXXX move to generic input handler */
1644static int 1644static int
1645client_input_channel_open(int type, u_int32_t seq, void *ctxt) 1645client_input_channel_open(int type, u_int32_t seq, struct ssh *ssh)
1646{ 1646{
1647 Channel *c = NULL; 1647 Channel *c = NULL;
1648 char *ctype; 1648 char *ctype;
@@ -1698,7 +1698,7 @@ client_input_channel_open(int type, u_int32_t seq, void *ctxt)
1698} 1698}
1699 1699
1700static int 1700static int
1701client_input_channel_req(int type, u_int32_t seq, void *ctxt) 1701client_input_channel_req(int type, u_int32_t seq, struct ssh *ssh)
1702{ 1702{
1703 Channel *c = NULL; 1703 Channel *c = NULL;
1704 int exitval, id, reply, success = 0; 1704 int exitval, id, reply, success = 0;
@@ -1706,7 +1706,7 @@ client_input_channel_req(int type, u_int32_t seq, void *ctxt)
1706 1706
1707 id = packet_get_int(); 1707 id = packet_get_int();
1708 c = channel_lookup(id); 1708 c = channel_lookup(id);
1709 if (channel_proxy_upstream(c, type, seq, ctxt)) 1709 if (channel_proxy_upstream(c, type, seq, ssh))
1710 return 0; 1710 return 0;
1711 rtype = packet_get_string(NULL); 1711 rtype = packet_get_string(NULL);
1712 reply = packet_get_char(); 1712 reply = packet_get_char();
@@ -2136,7 +2136,7 @@ client_input_hostkeys(void)
2136} 2136}
2137 2137
2138static int 2138static int
2139client_input_global_request(int type, u_int32_t seq, void *ctxt) 2139client_input_global_request(int type, u_int32_t seq, struct ssh *ssh)
2140{ 2140{
2141 char *rtype; 2141 char *rtype;
2142 int want_reply; 2142 int want_reply;