diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 23:16:16 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 23:16:16 +0800 |
commit | ef151888fbef7f33f2140da579945b7fcb83151c (patch) | |
tree | 12a1b34f5364eb86d38ed24f9c6db59bf4a0d7f0 /cli-kex.c | |
parent | ba15bbfe33f4d6174526a03fda1b3b543a0b1d12 (diff) |
requirenext fixup for firstkexfollows
Diffstat (limited to 'cli-kex.c')
-rw-r--r-- | cli-kex.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -61,8 +61,8 @@ void send_msg_kexdh_init() { buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_INIT); buf_putmpint(ses.writepayload, cli_ses.dh_e); encrypt_packet(); - // XXX fixme - //ses.requirenext = SSH_MSG_KEXDH_REPLY; + ses.requirenext[0] = SSH_MSG_KEXDH_REPLY; + ses.requirenext[1] = SSH_MSG_KEXINIT; } /* Handle a diffie-hellman key exchange reply. */ @@ -118,7 +118,8 @@ void recv_msg_kexdh_reply() { hostkey = NULL; send_msg_newkeys(); - ses.requirenext = SSH_MSG_NEWKEYS; + ses.requirenext[0] = SSH_MSG_NEWKEYS; + ses.requirenext[1] = 0; TRACE(("leave recv_msg_kexdh_init")) } |