summaryrefslogtreecommitdiff
path: root/svr-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-17 10:20:20 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-17 10:20:20 +0000
commitae2c921d65ade289f0e316643b64d8656c0eb1e6 (patch)
treeaa75223fe057999adadd9aa8891ee9e926d11354 /svr-kex.c
parent40dd87f5c2bad05a5e6aee875fa9f677d01204e0 (diff)
downloaddropbear-ae2c921d65ade289f0e316643b64d8656c0eb1e6.tar.gz
default initialisers for mp_ints
Diffstat (limited to 'svr-kex.c')
-rw-r--r--svr-kex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/svr-kex.c b/svr-kex.c
index 816779c..47c540e 100644
--- a/svr-kex.c
+++ b/svr-kex.c
@@ -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);