summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-12-21 15:00:19 +1100
committerDamien Miller <djm@mindrot.org>2001-12-21 15:00:19 +1100
commit278f907a2d6d00d6f52a11bf9577648aadbf0994 (patch)
tree50f885a7fd73b813754e3b675e810dc01ba78b78 /channels.c
parente737856350287104a12f5a97c81fad1f7bcd7096 (diff)
- djm@cvs.openbsd.org 2001/12/20 22:50:24
[auth2.c auth2-chall.c channels.c channels.h clientloop.c dispatch.c] [dispatch.h kex.c kex.h packet.c packet.h serverloop.c ssh.c] [sshconnect2.c] Conformance fix: we should send failing packet sequence number when responding with a SSH_MSG_UNIMPLEMENTED message. Spotted by yakk@yakk.dot.net; ok markus@
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/channels.c b/channels.c
index 340b10646..cc2613a88 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.149 2001/12/20 16:37:29 markus Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.150 2001/12/20 22:50:24 djm Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -1710,7 +1710,7 @@ channel_output_poll(void)
1710/* -- protocol input */ 1710/* -- protocol input */
1711 1711
1712void 1712void
1713channel_input_data(int type, int plen, void *ctxt) 1713channel_input_data(int type, int plen, u_int32_t seq, void *ctxt)
1714{ 1714{
1715 int id; 1715 int id;
1716 char *data; 1716 char *data;
@@ -1756,7 +1756,7 @@ channel_input_data(int type, int plen, void *ctxt)
1756} 1756}
1757 1757
1758void 1758void
1759channel_input_extended_data(int type, int plen, void *ctxt) 1759channel_input_extended_data(int type, int plen, u_int32_t seq, void *ctxt)
1760{ 1760{
1761 int id; 1761 int id;
1762 int tcode; 1762 int tcode;
@@ -1796,7 +1796,7 @@ channel_input_extended_data(int type, int plen, void *ctxt)
1796} 1796}
1797 1797
1798void 1798void
1799channel_input_ieof(int type, int plen, void *ctxt) 1799channel_input_ieof(int type, int plen, u_int32_t seq, void *ctxt)
1800{ 1800{
1801 int id; 1801 int id;
1802 Channel *c; 1802 Channel *c;
@@ -1818,7 +1818,7 @@ channel_input_ieof(int type, int plen, void *ctxt)
1818} 1818}
1819 1819
1820void 1820void
1821channel_input_close(int type, int plen, void *ctxt) 1821channel_input_close(int type, int plen, u_int32_t seq, void *ctxt)
1822{ 1822{
1823 int id; 1823 int id;
1824 Channel *c; 1824 Channel *c;
@@ -1857,7 +1857,7 @@ channel_input_close(int type, int plen, void *ctxt)
1857 1857
1858/* proto version 1.5 overloads CLOSE_CONFIRMATION with OCLOSE */ 1858/* proto version 1.5 overloads CLOSE_CONFIRMATION with OCLOSE */
1859void 1859void
1860channel_input_oclose(int type, int plen, void *ctxt) 1860channel_input_oclose(int type, int plen, u_int32_t seq, void *ctxt)
1861{ 1861{
1862 int id = packet_get_int(); 1862 int id = packet_get_int();
1863 Channel *c = channel_lookup(id); 1863 Channel *c = channel_lookup(id);
@@ -1868,7 +1868,7 @@ channel_input_oclose(int type, int plen, void *ctxt)
1868} 1868}
1869 1869
1870void 1870void
1871channel_input_close_confirmation(int type, int plen, void *ctxt) 1871channel_input_close_confirmation(int type, int plen, u_int32_t seq, void *ctxt)
1872{ 1872{
1873 int id = packet_get_int(); 1873 int id = packet_get_int();
1874 Channel *c = channel_lookup(id); 1874 Channel *c = channel_lookup(id);
@@ -1884,7 +1884,7 @@ channel_input_close_confirmation(int type, int plen, void *ctxt)
1884} 1884}
1885 1885
1886void 1886void
1887channel_input_open_confirmation(int type, int plen, void *ctxt) 1887channel_input_open_confirmation(int type, int plen, u_int32_t seq, void *ctxt)
1888{ 1888{
1889 int id, remote_id; 1889 int id, remote_id;
1890 Channel *c; 1890 Channel *c;
@@ -1934,7 +1934,7 @@ reason2txt(int reason)
1934} 1934}
1935 1935
1936void 1936void
1937channel_input_open_failure(int type, int plen, void *ctxt) 1937channel_input_open_failure(int type, int plen, u_int32_t seq, void *ctxt)
1938{ 1938{
1939 int id, reason; 1939 int id, reason;
1940 char *msg = NULL, *lang = NULL; 1940 char *msg = NULL, *lang = NULL;
@@ -1968,7 +1968,7 @@ channel_input_open_failure(int type, int plen, void *ctxt)
1968} 1968}
1969 1969
1970void 1970void
1971channel_input_channel_request(int type, int plen, void *ctxt) 1971channel_input_channel_request(int type, int plen, u_int32_t seq, void *ctxt)
1972{ 1972{
1973 int id; 1973 int id;
1974 Channel *c; 1974 Channel *c;
@@ -1993,7 +1993,7 @@ channel_input_channel_request(int type, int plen, void *ctxt)
1993} 1993}
1994 1994
1995void 1995void
1996channel_input_window_adjust(int type, int plen, void *ctxt) 1996channel_input_window_adjust(int type, int plen, u_int32_t seq, void *ctxt)
1997{ 1997{
1998 Channel *c; 1998 Channel *c;
1999 int id, adjust; 1999 int id, adjust;
@@ -2017,7 +2017,7 @@ channel_input_window_adjust(int type, int plen, void *ctxt)
2017} 2017}
2018 2018
2019void 2019void
2020channel_input_port_open(int type, int plen, void *ctxt) 2020channel_input_port_open(int type, int plen, u_int32_t seq, void *ctxt)
2021{ 2021{
2022 Channel *c = NULL; 2022 Channel *c = NULL;
2023 u_short host_port; 2023 u_short host_port;
@@ -2624,7 +2624,7 @@ x11_connect_display(void)
2624 */ 2624 */
2625 2625
2626void 2626void
2627x11_input_open(int type, int plen, void *ctxt) 2627x11_input_open(int type, int plen, u_int32_t seq, void *ctxt)
2628{ 2628{
2629 Channel *c = NULL; 2629 Channel *c = NULL;
2630 int remote_id, sock = 0; 2630 int remote_id, sock = 0;
@@ -2671,7 +2671,7 @@ x11_input_open(int type, int plen, void *ctxt)
2671 2671
2672/* dummy protocol handler that denies SSH-1 requests (agent/x11) */ 2672/* dummy protocol handler that denies SSH-1 requests (agent/x11) */
2673void 2673void
2674deny_input_open(int type, int plen, void *ctxt) 2674deny_input_open(int type, int plen, u_int32_t seq, void *ctxt)
2675{ 2675{
2676 int rchan = packet_get_int(); 2676 int rchan = packet_get_int();
2677 switch (type) { 2677 switch (type) {
@@ -2882,7 +2882,7 @@ auth_input_request_forwarding(struct passwd * pw)
2882/* This is called to process an SSH_SMSG_AGENT_OPEN message. */ 2882/* This is called to process an SSH_SMSG_AGENT_OPEN message. */
2883 2883
2884void 2884void
2885auth_input_open_request(int type, int plen, void *ctxt) 2885auth_input_open_request(int type, int plen, u_int32_t seq, void *ctxt)
2886{ 2886{
2887 Channel *c = NULL; 2887 Channel *c = NULL;
2888 int remote_id, sock; 2888 int remote_id, sock;