comparison kex.h @ 179:161557a9dde8

* fix longstanding bug with connections being closed on failure to connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 13:58:14 +0000
parents f789045062e6
children ad1b24e39bf3
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
35 void kexfirstinitialise(); 35 void kexfirstinitialise();
36 void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv); 36 void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv);
37 void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them, 37 void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them,
38 sign_key *hostkey); 38 sign_key *hostkey);
39 39
40 void recv_msg_kexdh_init(); // server 40 void recv_msg_kexdh_init(); /* server */
41 41
42 void send_msg_kexdh_init(); // client 42 void send_msg_kexdh_init(); /* client */
43 void recv_msg_kexdh_reply(); // client 43 void recv_msg_kexdh_reply(); /* client */
44 44
45 extern const unsigned char dh_p_val[]; 45 extern const unsigned char dh_p_val[];
46 #define DH_P_LEN 128 /* The length of the dh_p_val array */ 46 #define DH_P_LEN 128 /* The length of the dh_p_val array */
47 47
48 extern const int DH_G_VAL; /* == 2 */ 48 extern const int DH_G_VAL; /* == 2 */