Mercurial > dropbear
comparison kex.h @ 33:f789045062e6
Progressing client support
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 27 Jul 2004 16:30:46 +0000 |
parents | 0969767bca0d |
children | 161557a9dde8 |
comparison
equal
deleted
inserted
replaced
32:8fd0cdbb5b1b | 33:f789045062e6 |
---|---|
30 | 30 |
31 void send_msg_kexinit(); | 31 void send_msg_kexinit(); |
32 void recv_msg_kexinit(); | 32 void recv_msg_kexinit(); |
33 void send_msg_newkeys(); | 33 void send_msg_newkeys(); |
34 void recv_msg_newkeys(); | 34 void recv_msg_newkeys(); |
35 void kexinitialise(); | 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 | |
40 void read_kex_algos( | |
41 algo_type*(buf_match_algo)(buffer*buf, algo_type localalgos[], | |
42 int *goodguess)); | |
43 | 39 |
44 void recv_msg_kexdh_init(); // server | 40 void recv_msg_kexdh_init(); // server |
45 | 41 |
46 void send_msg_kexdh_init(); // client | 42 void send_msg_kexdh_init(); // client |
47 void recv_msg_kexdh_reply(); // client | 43 void recv_msg_kexdh_reply(); // client |
57 unsigned recvkexinit : 1; | 53 unsigned recvkexinit : 1; |
58 unsigned firstfollows : 1; /* true when first_kex_packet_follows is set */ | 54 unsigned firstfollows : 1; /* true when first_kex_packet_follows is set */ |
59 unsigned sentnewkeys : 1; /* set once we've send/recv'ed MSG_NEWKEYS*/ | 55 unsigned sentnewkeys : 1; /* set once we've send/recv'ed MSG_NEWKEYS*/ |
60 unsigned recvnewkeys : 1; | 56 unsigned recvnewkeys : 1; |
61 | 57 |
58 unsigned donefirstkex : 1; /* Set to 1 after the first kex has completed, | |
59 ie the transport layer has been set up */ | |
60 | |
62 long lastkextime; /* time of the last kex */ | 61 long lastkextime; /* time of the last kex */ |
63 unsigned int datatrans; /* data transmitted since last kex */ | 62 unsigned int datatrans; /* data transmitted since last kex */ |
64 unsigned int datarecv; /* data received since last kex */ | 63 unsigned int datarecv; /* data received since last kex */ |
65 | 64 |
66 }; | 65 }; |