diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-21 13:23:52 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-21 13:23:52 +1100 |
commit | 6162d1215bbff30cf0c4c19368dc85ae570d44ca (patch) | |
tree | f82956b4429cad04a2296a1ede65e147bafb92f4 /sshd.c | |
parent | f58db38f8d396ee5ea42975d9409a644e01cede8 (diff) |
- OpenBSD CVS Changes
- [channels.c]
make this compile, bad markus
- [log.c readconf.c servconf.c ssh.h]
bugfix: loglevels are per host in clientconfig,
factor out common log-level parsing code.
- [servconf.c]
remove unused index (-Wall)
- [ssh-agent.c]
only one 'extern char *__progname'
- [sshd.8]
document SIGHUP, -Q to synopsis
- [sshconnect.c serverloop.c sshd.c packet.c packet.h]
[channels.c clientloop.c]
SSH_CMSG_MAX_PACKET_SIZE, some clients use this, some need this, niels@
[hope this time my ISP stays alive during commit]
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -18,7 +18,7 @@ agent connections. | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "includes.h" | 20 | #include "includes.h" |
21 | RCSID("$Id: sshd.c,v 1.25 1999/11/18 21:25:48 damien Exp $"); | 21 | RCSID("$Id: sshd.c,v 1.26 1999/11/21 02:23:53 damien Exp $"); |
22 | 22 | ||
23 | #include "xmalloc.h" | 23 | #include "xmalloc.h" |
24 | #include "rsa.h" | 24 | #include "rsa.h" |
@@ -1753,6 +1753,11 @@ void do_authenticated(struct passwd *pw) | |||
1753 | channel_input_port_forward_request(pw->pw_uid == 0); | 1753 | channel_input_port_forward_request(pw->pw_uid == 0); |
1754 | break; | 1754 | break; |
1755 | 1755 | ||
1756 | case SSH_CMSG_MAX_PACKET_SIZE: | ||
1757 | if (packet_set_maxsize(packet_get_int()) < 0) | ||
1758 | goto fail; | ||
1759 | break; | ||
1760 | |||
1756 | case SSH_CMSG_EXEC_SHELL: | 1761 | case SSH_CMSG_EXEC_SHELL: |
1757 | /* Set interactive/non-interactive mode. */ | 1762 | /* Set interactive/non-interactive mode. */ |
1758 | packet_set_interactive(have_pty || display != NULL, | 1763 | packet_set_interactive(have_pty || display != NULL, |
@@ -1791,10 +1796,6 @@ void do_authenticated(struct passwd *pw) | |||
1791 | xfree(command); | 1796 | xfree(command); |
1792 | return; | 1797 | return; |
1793 | 1798 | ||
1794 | case SSH_CMSG_MAX_PACKET_SIZE: | ||
1795 | debug("The server does not support limiting packet size."); | ||
1796 | goto fail; | ||
1797 | |||
1798 | default: | 1799 | default: |
1799 | /* Any unknown messages in this phase are ignored, and a failure | 1800 | /* Any unknown messages in this phase are ignored, and a failure |
1800 | message is returned. */ | 1801 | message is returned. */ |