comparison session.h @ 775:2f1c199b6e4b

requirenext fixup for firstkexfollows
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 23:16:16 +0800
parents d63ef1e211ea
children 7dcb46da72d9
comparison
equal deleted inserted replaced
774:e8b2ca448928 775:2f1c199b6e4b
133 session, see process-packet.c */ 133 session, see process-packet.c */
134 134
135 unsigned dataallowed : 1; /* whether we can send data packets or we are in 135 unsigned dataallowed : 1; /* whether we can send data packets or we are in
136 the middle of a KEX or something */ 136 the middle of a KEX or something */
137 137
138 unsigned char requirenext; /* byte indicating what packet we require next, 138 unsigned char requirenext[2]; /* bytes indicating what packets we require next,
139 or 0x00 for any */ 139 or 0x00 for any. Second option can only be
140 used if the first byte is also set */
140 141
141 unsigned char ignorenext; /* whether to ignore the next packet, 142 unsigned char ignorenext; /* whether to ignore the next packet,
142 used for kex_follows stuff */ 143 used for kex_follows stuff */
143 144
144 unsigned char lastpacket; /* What the last received packet type was */ 145 unsigned char lastpacket; /* What the last received packet type was */