summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2015-01-19 20:07:45 +0000
committerDamien Miller <djm@mindrot.org>2015-01-20 09:14:16 +1100
commit3fdc88a0def4f86aa88a5846ac079dc964c0546a (patch)
treed26470c8ffb49bb4417af2b729d933d6ce3f75f8 /kex.c
parent091c302829210c41e7f57c3f094c7b9c054306f0 (diff)
upstream commit
move dispatch to struct ssh; ok djm@
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kex.c b/kex.c
index 7c4dd7a90..92ebaf732 100644
--- a/kex.c
+++ b/kex.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.c,v 1.100 2015/01/19 19:52:16 markus Exp $ */ 1/* $OpenBSD: kex.c,v 1.101 2015/01/19 20:07:45 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -209,10 +209,11 @@ kex_prop_free(char **proposal)
209} 209}
210 210
211/* ARGSUSED */ 211/* ARGSUSED */
212static void 212static int
213kex_protocol_error(int type, u_int32_t seq, void *ctxt) 213kex_protocol_error(int type, u_int32_t seq, void *ctxt)
214{ 214{
215 error("Hm, kex protocol error: type %d seq %u", type, seq); 215 error("Hm, kex protocol error: type %d seq %u", type, seq);
216 return 0;
216} 217}
217 218
218static void 219static void
@@ -281,7 +282,7 @@ kex_send_kexinit(Kex *kex)
281} 282}
282 283
283/* ARGSUSED */ 284/* ARGSUSED */
284void 285int
285kex_input_kexinit(int type, u_int32_t seq, void *ctxt) 286kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
286{ 287{
287 const char *ptr; 288 const char *ptr;
@@ -316,6 +317,7 @@ kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
316 packet_check_eom(); 317 packet_check_eom();
317 318
318 kex_kexinit_finish(kex); 319 kex_kexinit_finish(kex);
320 return 0;
319} 321}
320 322
321void 323void