summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--kex.c10
2 files changed, 13 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index e22fa7ea4..3450ef5c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
120010213
2 - (djm) OpenBSD CVS Sync
3 - markus@cvs.openbsd.org 2002/02/11 16:10:15
4 [kex.c]
5 restore kexinit handler if we reset the dispatcher, this unbreaks
6 rekeying s/kex_clear_dispatch/kex_reset_dispatch/
7
120020210 820020210
2 - (djm) OpenBSD CVS Sync 9 - (djm) OpenBSD CVS Sync
3 - deraadt@cvs.openbsd.org 2002/02/09 17:37:34 10 - deraadt@cvs.openbsd.org 2002/02/09 17:37:34
@@ -7544,4 +7551,4 @@
7544 - Wrote replacements for strlcpy and mkdtemp 7551 - Wrote replacements for strlcpy and mkdtemp
7545 - Released 1.0pre1 7552 - Released 1.0pre1
7546 7553
7547$Id: ChangeLog,v 1.1838 2002/02/10 07:32:55 djm Exp $ 7554$Id: ChangeLog,v 1.1839 2002/02/13 02:54:06 djm Exp $
diff --git a/kex.c b/kex.c
index b58b12f40..02c9780ad 100644
--- a/kex.c
+++ b/kex.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: kex.c,v 1.43 2002/01/25 22:07:40 markus Exp $"); 26RCSID("$OpenBSD: kex.c,v 1.44 2002/02/11 16:10:15 markus Exp $");
27 27
28#include <openssl/crypto.h> 28#include <openssl/crypto.h>
29 29
@@ -113,16 +113,17 @@ kex_protocol_error(int type, u_int32_t seq, void *ctxt)
113} 113}
114 114
115static void 115static void
116kex_clear_dispatch(void) 116kex_reset_dispatch(void)
117{ 117{
118 dispatch_range(SSH2_MSG_TRANSPORT_MIN, 118 dispatch_range(SSH2_MSG_TRANSPORT_MIN,
119 SSH2_MSG_TRANSPORT_MAX, &kex_protocol_error); 119 SSH2_MSG_TRANSPORT_MAX, &kex_protocol_error);
120 dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit);
120} 121}
121 122
122void 123void
123kex_finish(Kex *kex) 124kex_finish(Kex *kex)
124{ 125{
125 kex_clear_dispatch(); 126 kex_reset_dispatch();
126 127
127 packet_start(SSH2_MSG_NEWKEYS); 128 packet_start(SSH2_MSG_NEWKEYS);
128 packet_send(); 129 packet_send();
@@ -200,8 +201,7 @@ kex_setup(char *proposal[PROPOSAL_MAX])
200 kex->done = 0; 201 kex->done = 0;
201 202
202 kex_send_kexinit(kex); /* we start */ 203 kex_send_kexinit(kex); /* we start */
203 kex_clear_dispatch(); 204 kex_reset_dispatch();
204 dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit);
205 205
206 return kex; 206 return kex;
207} 207}