comparison svr-kex.c @ 775:2f1c199b6e4b

requirenext fixup for firstkexfollows
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 23:16:16 +0800
parents 3aa74a4d83ae
children 7dcb46da72d9
comparison
equal deleted inserted replaced
774:e8b2ca448928 775:2f1c199b6e4b
59 send_msg_kexdh_reply(&dh_e); 59 send_msg_kexdh_reply(&dh_e);
60 60
61 mp_clear(&dh_e); 61 mp_clear(&dh_e);
62 62
63 send_msg_newkeys(); 63 send_msg_newkeys();
64 ses.requirenext = SSH_MSG_NEWKEYS; 64 ses.requirenext[0] = SSH_MSG_NEWKEYS;
65 ses.requirenext[1] = 0;
65 TRACE(("leave recv_msg_kexdh_init")) 66 TRACE(("leave recv_msg_kexdh_init"))
66 } 67 }
67 68
68 /* Generate our side of the diffie-hellman key exchange value (dh_f), and 69 /* Generate our side of the diffie-hellman key exchange value (dh_f), and
69 * calculate the session key using the diffie-hellman algorithm. Following 70 * calculate the session key using the diffie-hellman algorithm. Following