comparison svr-kex.c @ 759:76fba0856749 ecc

More changes for KEX and ECDH. Set up hash descriptors, make ECC code work, ses.hash and ses.session_id are now buffers (doesn't compile)
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Mar 2013 00:28:09 +0800
parents b07eb3dc23ec
children ac2158e3e403
comparison
equal deleted inserted replaced
758:1c607a62d235 759:76fba0856749
57 if (buf_getmpint(ses.payload, &dh_e) != DROPBEAR_SUCCESS) { 57 if (buf_getmpint(ses.payload, &dh_e) != DROPBEAR_SUCCESS) {
58 dropbear_exit("Failed to get kex value"); 58 dropbear_exit("Failed to get kex value");
59 } 59 }
60 } else { 60 } else {
61 #ifdef DROPBEAR_ECDH 61 #ifdef DROPBEAR_ECDH
62 buffer *ecdh_qs = buf_getstringbuf(ses.payload);
62 #endif 63 #endif
63 } 64 }
64 65
65 send_msg_kexdh_reply(&dh_e, ecdh_qs); 66 send_msg_kexdh_reply(&dh_e, ecdh_qs);
66 67