Mercurial > dropbear
comparison cli-kex.c @ 756:bf9dc2d9c2b1 ecc
more bits on ecc branch
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 27 Mar 2013 00:38:03 +0800 |
parents | b07eb3dc23ec |
children | 76fba0856749 |
comparison
equal
deleted
inserted
replaced
755:b07eb3dc23ec | 756:bf9dc2d9c2b1 |
---|---|
47 if (IS_NORMAL_DH(ses.newkeys->algo_kex)) { | 47 if (IS_NORMAL_DH(ses.newkeys->algo_kex)) { |
48 cli_ses.dh_param = gen_kexdh_param(); | 48 cli_ses.dh_param = gen_kexdh_param(); |
49 buf_putmpint(ses.writepayload, &cli_ses.dh_param->pub); | 49 buf_putmpint(ses.writepayload, &cli_ses.dh_param->pub); |
50 } else { | 50 } else { |
51 #ifdef DROPBEAR_ECDH | 51 #ifdef DROPBEAR_ECDH |
52 cli_ses.ecdh_param = | 52 cli_ses.ecdh_param = gen_kexecdh_param(); |
53 #endif | 53 #endif |
54 } | 54 } |
55 encrypt_packet(); | 55 encrypt_packet(); |
56 ses.requirenext = SSH_MSG_KEXDH_REPLY; | 56 ses.requirenext = SSH_MSG_KEXDH_REPLY; |
57 } | 57 } |