version 1.43, 2002/01/25 22:07:40 |
version 1.44, 2002/02/11 16:10:15 |
|
|
} |
} |
|
|
static void |
static void |
kex_clear_dispatch(void) |
kex_reset_dispatch(void) |
{ |
{ |
dispatch_range(SSH2_MSG_TRANSPORT_MIN, |
dispatch_range(SSH2_MSG_TRANSPORT_MIN, |
SSH2_MSG_TRANSPORT_MAX, &kex_protocol_error); |
SSH2_MSG_TRANSPORT_MAX, &kex_protocol_error); |
|
dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit); |
} |
} |
|
|
void |
void |
kex_finish(Kex *kex) |
kex_finish(Kex *kex) |
{ |
{ |
kex_clear_dispatch(); |
kex_reset_dispatch(); |
|
|
packet_start(SSH2_MSG_NEWKEYS); |
packet_start(SSH2_MSG_NEWKEYS); |
packet_send(); |
packet_send(); |
|
|
kex->done = 0; |
kex->done = 0; |
|
|
kex_send_kexinit(kex); /* we start */ |
kex_send_kexinit(kex); /* we start */ |
kex_clear_dispatch(); |
kex_reset_dispatch(); |
dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit); |
|
|
|
return kex; |
return kex; |
} |
} |