diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-05-21 12:09:35 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-05-21 12:09:35 +0800 |
commit | a0da2d6e81a883a2a1b38d464603cec9a5e8aabd (patch) | |
tree | 935d2110c0dec496ebb8b24fbc4a9596d73100fb /kex.h | |
parent | 7eac89cbd9b2e2da5bb6bf9e8f1686059cdcf7b6 (diff) | |
parent | 123bd5d43879bc87ea5362b6ef64ac599d7390d0 (diff) | |
download | dropbear-a0da2d6e81a883a2a1b38d464603cec9a5e8aabd.tar.gz |
merge in HEAD
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -61,13 +61,15 @@ struct KEXState { unsigned sentkexinit : 1; /*set when we've sent/recv kexinit packet */ unsigned recvkexinit : 1; - unsigned firstfollows : 1; /* true when first_kex_packet_follows is set */ + unsigned them_firstfollows : 1; /* true when first_kex_packet_follows is set */ unsigned sentnewkeys : 1; /* set once we've send MSG_NEWKEYS (will be cleared once we have also received */ unsigned recvnewkeys : 1; /* set once we've received MSG_NEWKEYS (cleared once we have also sent */ unsigned donefirstkex : 1; /* Set to 1 after the first kex has completed, ie the transport layer has been set up */ + unsigned our_first_follows_matches : 1; + time_t lastkextime; /* time of the last kex */ unsigned int datatrans; /* data transmitted since last kex */ unsigned int datarecv; /* data received since last kex */ @@ -80,8 +82,8 @@ extern const unsigned char dh_p_1[DH_P_1_LEN]; extern const unsigned char dh_p_14[DH_P_14_LEN]; struct kex_dh_param { - mp_int pub; - mp_int priv; + mp_int pub; /* e */ + mp_int priv; /* x */ }; #ifdef DROPBEAR_ECDH |