summaryrefslogtreecommitdiffhomepage
path: root/common-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-16 08:59:11 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-16 08:59:11 +0000
commitfdfc95df8b1d5c7c889e56a1028671a77f6cff5a (patch)
tree295884cbee29b91629a69ff3112b47c8de6a4337 /common-kex.c
parent6d93048fe97aee12d79ea7921eabf426956c6a22 (diff)
- don't crash when trying to add to known_hosts if it doesn't exist
- comments --HG-- extra : convert_revision : ffafd48c7494fee17a98d901e30c3372e1a092e9
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common-kex.c b/common-kex.c
index 0654b19..f8bfe97 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -464,6 +464,8 @@ void recv_msg_kexinit() {
/* Initialises and generate one side of the diffie-hellman key exchange values.
* See the ietf-secsh-transport draft, section 6, for details */
+/* dh_pub and dh_priv will be initialised by this function, and should be
+ * mp_clear()ed after finished */
void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv) {
mp_int dh_p, dh_q, dh_g;