summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c
index d1290ff22..4ae02fd10 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -35,7 +35,7 @@
35 */ 35 */
36 36
37#include "includes.h" 37#include "includes.h"
38RCSID("$OpenBSD: serverloop.c,v 1.55 2001/03/16 19:06:29 markus Exp $"); 38RCSID("$OpenBSD: serverloop.c,v 1.56 2001/04/04 14:34:58 markus Exp $");
39 39
40#include "xmalloc.h" 40#include "xmalloc.h"
41#include "packet.h" 41#include "packet.h"
@@ -53,9 +53,13 @@ RCSID("$OpenBSD: serverloop.c,v 1.55 2001/03/16 19:06:29 markus Exp $");
53#include "auth-options.h" 53#include "auth-options.h"
54#include "serverloop.h" 54#include "serverloop.h"
55#include "misc.h" 55#include "misc.h"
56#include "kex.h"
56 57
57extern ServerOptions options; 58extern ServerOptions options;
58 59
60/* XXX */
61extern Kex *xxx_kex;
62
59static Buffer stdin_buffer; /* Buffer for stdin data. */ 63static Buffer stdin_buffer; /* Buffer for stdin data. */
60static Buffer stdout_buffer; /* Buffer for stdout data. */ 64static Buffer stdout_buffer; /* Buffer for stdout data. */
61static Buffer stderr_buffer; /* Buffer for stderr data. */ 65static Buffer stderr_buffer; /* Buffer for stderr data. */
@@ -391,7 +395,7 @@ drain_output(void)
391void 395void
392process_buffered_input_packets(void) 396process_buffered_input_packets(void)
393{ 397{
394 dispatch_run(DISPATCH_NONBLOCK, NULL, NULL); 398 dispatch_run(DISPATCH_NONBLOCK, NULL, compat20 ? xxx_kex : NULL);
395} 399}
396 400
397/* 401/*
@@ -905,6 +909,9 @@ server_init_dispatch_20(void)
905 dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &channel_input_channel_request); 909 dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &channel_input_channel_request);
906 dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust); 910 dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust);
907 dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &server_input_global_request); 911 dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &server_input_global_request);
912
913 /* rekeying */
914 dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit);
908} 915}
909void 916void
910server_init_dispatch_13(void) 917server_init_dispatch_13(void)