comparison kex.h @ 739:d44325108d0e kexguess

first_kex_packet_follows working, needs tidying
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Mar 2013 20:44:13 +0800
parents 895fbe068f2c
children 3062da90dab8
comparison
equal deleted inserted replaced
725:49f68a7b7a55 739:d44325108d0e
49 49
50 struct KEXState { 50 struct KEXState {
51 51
52 unsigned sentkexinit : 1; /*set when we've sent/recv kexinit packet */ 52 unsigned sentkexinit : 1; /*set when we've sent/recv kexinit packet */
53 unsigned recvkexinit : 1; 53 unsigned recvkexinit : 1;
54 unsigned firstfollows : 1; /* true when first_kex_packet_follows is set */ 54 unsigned them_firstfollows : 1; /* true when first_kex_packet_follows is set */
55 unsigned sentnewkeys : 1; /* set once we've send MSG_NEWKEYS (will be cleared once we have also received */ 55 unsigned sentnewkeys : 1; /* set once we've send MSG_NEWKEYS (will be cleared once we have also received */
56 unsigned recvnewkeys : 1; /* set once we've received MSG_NEWKEYS (cleared once we have also sent */ 56 unsigned recvnewkeys : 1; /* set once we've received MSG_NEWKEYS (cleared once we have also sent */
57 57
58 unsigned donefirstkex : 1; /* Set to 1 after the first kex has completed, 58 unsigned donefirstkex : 1; /* Set to 1 after the first kex has completed,
59 ie the transport layer has been set up */ 59 ie the transport layer has been set up */
60
61 unsigned our_first_follows_matches : 1;
60 62
61 time_t lastkextime; /* time of the last kex */ 63 time_t lastkextime; /* time of the last kex */
62 unsigned int datatrans; /* data transmitted since last kex */ 64 unsigned int datatrans; /* data transmitted since last kex */
63 unsigned int datarecv; /* data received since last kex */ 65 unsigned int datarecv; /* data received since last kex */
64 66