From 9ba6c07c35c4aa8b6b2e5b7d71f11a8c65ec2284 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Fri, 19 Nov 1999 19:58:19 +0000 Subject: SSH_CMSG_MAX_PACKET_SIZE, some clients use this, some need this, niels@ [hope this time my ISP stays alive during commit] --- usr.bin/ssh/sshd.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'usr.bin/ssh/sshd.c') diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 8ab869b0bd9..d085e4d3857 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -18,7 +18,7 @@ agent connections. */ #include "includes.h" -RCSID("$Id: sshd.c,v 1.58 1999/11/18 14:00:49 markus Exp $"); +RCSID("$Id: sshd.c,v 1.59 1999/11/19 19:58:18 markus Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -1536,6 +1536,11 @@ void do_authenticated(struct passwd *pw) channel_input_port_forward_request(pw->pw_uid == 0); break; + case SSH_CMSG_MAX_PACKET_SIZE: + if (packet_set_maxsize(packet_get_int()) < 0) + goto fail; + break; + case SSH_CMSG_EXEC_SHELL: /* Set interactive/non-interactive mode. */ packet_set_interactive(have_pty || display != NULL, @@ -1574,10 +1579,6 @@ void do_authenticated(struct passwd *pw) xfree(command); return; - case SSH_CMSG_MAX_PACKET_SIZE: - debug("The server does not support limiting packet size."); - goto fail; - default: /* Any unknown messages in this phase are ignored, and a failure message is returned. */ -- cgit v1.2.3