comparison packet.h @ 22:c1e5d9195402

merge of abac2150ee4f4031a98016241fbd136d24fed127 and ffa047425729e478a5b49b1ab0f8ec71c08a1421
author Matt Johnston <matt@ucc.asn.au>
date Wed, 23 Jun 2004 07:14:16 +0000
parents fe6bca95afa7
children 4cab61369879
comparison
equal deleted inserted replaced
14:5ae28f6101c1 22:c1e5d9195402
30 30
31 void write_packet(); 31 void write_packet();
32 void read_packet(); 32 void read_packet();
33 void decrypt_packet(); 33 void decrypt_packet();
34 void encrypt_packet(); 34 void encrypt_packet();
35 void recv_unimplemented();
36 35
37 void svr_process_packet(); 36 void process_packet();
37
38 typedef struct PacketType {
39 unsigned char type; /* SSH_MSG_FOO */
40 void (*handler)();
41 } packettype;
38 42
39 #define PACKET_PADDING_OFF 4 43 #define PACKET_PADDING_OFF 4
40 #define PACKET_PAYLOAD_OFF 5 44 #define PACKET_PAYLOAD_OFF 5
41 45
42 #define INIT_READBUF 200 46 #define INIT_READBUF 200