comparison packet.h @ 452:4cab61369879

Prevent invalid packets being sent during key-exchange, instead queue them until afterwards. This could sometimes terminate connections after 8 hours if (for example) a new TCP forwarded connection was sent at the KEX timeout.
author Matt Johnston <matt@ucc.asn.au>
date Fri, 27 Jul 2007 17:13:42 +0000
parents c1e5d9195402
children da6340a60039
comparison
equal deleted inserted replaced
451:f2aa5aeea619 452:4cab61369879
33 void decrypt_packet(); 33 void decrypt_packet();
34 void encrypt_packet(); 34 void encrypt_packet();
35 35
36 void process_packet(); 36 void process_packet();
37 37
38 void maybe_flush_reply_queue();
38 typedef struct PacketType { 39 typedef struct PacketType {
39 unsigned char type; /* SSH_MSG_FOO */ 40 unsigned char type; /* SSH_MSG_FOO */
40 void (*handler)(); 41 void (*handler)();
41 } packettype; 42 } packettype;
42 43