requirenext fixup for firstkexfollows

This commit is contained in:
Matt Johnston
2013-04-14 23:16:16 +08:00
parent ba15bbfe33
commit ef151888fb
8 changed files with 53 additions and 13 deletions

View File

@@ -135,8 +135,9 @@ struct sshsession {
unsigned dataallowed : 1; /* whether we can send data packets or we are in
the middle of a KEX or something */
unsigned char requirenext; /* byte indicating what packet we require next,
or 0x00 for any */
unsigned char requirenext[2]; /* bytes indicating what packets we require next,
or 0x00 for any. Second option can only be
used if the first byte is also set */
unsigned char ignorenext; /* whether to ignore the next packet,
used for kex_follows stuff */