diff common-kex.c @ 351:e66eec4dcba7 debug-unrandom

some more debugging output
author Matt Johnston <matt@ucc.asn.au>
date Tue, 08 Aug 2006 15:31:38 +0000
parents 3e098639b05f
children
line wrap: on
line diff
--- a/common-kex.c	Sun Aug 06 15:29:41 2006 +0000
+++ b/common-kex.c	Tue Aug 08 15:31:38 2006 +0000
@@ -479,7 +479,7 @@
 	DEF_MP_INT(dh_q);
 	DEF_MP_INT(dh_g);
 
-	TRACE(("enter send_msg_kexdh_reply"))
+	TRACE(("enter gen_kexdh_vals"))
 	
 	m_mp_init_multi(&dh_g, &dh_p, &dh_q, NULL);
 
@@ -507,6 +507,7 @@
 		dropbear_exit("Diffie-Hellman error");
 	}
 	mp_clear_multi(&dh_g, &dh_p, &dh_q, NULL);
+    TRACE(("leave gen_kexdh_vals"))
 }
 
 /* This function is fairly common between client/server, with some substitution
@@ -520,6 +521,8 @@
 	mp_int *dh_e = NULL, *dh_f = NULL;
 	hash_state hs;
 
+    TRACE(("enter kexdh_comb_key"))
+
 	/* read the prime and generator*/
 	m_mp_init(&dh_p);
 	bytes_to_mp(&dh_p, dh_p_val, DH_P_LEN);
@@ -577,6 +580,7 @@
 		ses.session_id = (unsigned char*)m_malloc(SHA1_HASH_SIZE);
 		memcpy(ses.session_id, ses.hash, SHA1_HASH_SIZE);
 	}
+    TRACE(("leave kexdh_comb_key"))
 }
 
 /* read the other side's algo list. buf_match_algo is a callback to match