diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-17 10:20:20 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-17 10:20:20 +0000 |
commit | ae2c921d65ade289f0e316643b64d8656c0eb1e6 (patch) | |
tree | aa75223fe057999adadd9aa8891ee9e926d11354 /svr-kex.c | |
parent | 40dd87f5c2bad05a5e6aee875fa9f677d01204e0 (diff) | |
download | dropbear-ae2c921d65ade289f0e316643b64d8656c0eb1e6.tar.gz |
default initialisers for mp_ints
Diffstat (limited to 'svr-kex.c')
-rw-r--r-- | svr-kex.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -44,7 +44,7 @@ static void send_msg_kexdh_reply(mp_int *dh_e); * that function, then brings the new keys into use */ void recv_msg_kexdh_init() { - mp_int dh_e; + DEF_MP_INT(dh_e); TRACE(("enter recv_msg_kexdh_init")); if (!ses.kexstate.recvkexinit) { @@ -71,9 +71,11 @@ void recv_msg_kexdh_init() { * See the ietf-secsh-transport draft, section 6, for details */ static void send_msg_kexdh_reply(mp_int *dh_e) { - mp_int dh_y, dh_f; + DEF_MP_INT(dh_y); + DEF_MP_INT(dh_f); TRACE(("enter send_msg_kexdh_reply")); + m_mp_init_multi(&dh_y, &dh_f, NULL); gen_kexdh_vals(&dh_f, &dh_y); |