diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 23:24:13 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 23:24:13 +1100 |
commit | 7d05339c709efbf699e0dae499308428174a0da4 (patch) | |
tree | 22bbfa5480faa991511831b4c8aa5846267a27f4 /kex.c | |
parent | 84b8ab3eeef42818e20d2b46627245fe450082ab (diff) | |
download | openssh-git-7d05339c709efbf699e0dae499308428174a0da4.tar.gz |
- markus@cvs.openbsd.org 2002/01/11 13:39:36
[auth2.c dispatch.c dispatch.h kex.c]
a single dispatch_protocol_error() that sends a message of type 'UNIMPLEMENTED'
dispatch_range(): set handler for a ranges message types
use dispatch_protocol_ignore() for authentication requests after
successful authentication (the drafts requirement).
serverloop/clientloop now send a 'UNIMPLEMENTED' message instead of exiting.
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: kex.c,v 1.41 2001/12/28 15:06:00 markus Exp $"); +RCSID("$OpenBSD: kex.c,v 1.42 2002/01/11 13:39:36 markus Exp $"); #include <openssl/crypto.h> @@ -115,11 +115,8 @@ kex_protocol_error(int type, u_int32_t seq, void *ctxt) static void kex_clear_dispatch(void) { - int i; - - /* Numbers 30-49 are used for kex packets */ - for (i = 30; i <= 49; i++) - dispatch_set(i, &kex_protocol_error); + dispatch_range(SSH2_MSG_TRANSPORT_MIN, + SSH2_MSG_TRANSPORT_MAX, &kex_protocol_error); } void |