version 1.67, 2001/06/20 13:56:39 |
version 1.68, 2001/06/23 15:12:19 |
|
|
* Level is compression level 1 (fastest) - 9 (slow, best) as in gzip. |
* Level is compression level 1 (fastest) - 9 (slow, best) as in gzip. |
*/ |
*/ |
|
|
void |
static void |
packet_init_compression() |
packet_init_compression(void) |
{ |
{ |
if (compression_buffer_ready == 1) |
if (compression_buffer_ready == 1) |
return; |
return; |
|
|
* encrypts the packet before sending. |
* encrypts the packet before sending. |
*/ |
*/ |
|
|
void |
static void |
packet_send1(void) |
packet_send1(void) |
{ |
{ |
char buf[8], *cp; |
char buf[8], *cp; |
|
|
*/ |
*/ |
} |
} |
|
|
void |
static void |
set_newkeys(int mode) |
set_newkeys(int mode) |
{ |
{ |
Enc *enc; |
Enc *enc; |
|
|
/* |
/* |
* Finalize packet in SSH2 format (compress, mac, encrypt, enqueue) |
* Finalize packet in SSH2 format (compress, mac, encrypt, enqueue) |
*/ |
*/ |
void |
static void |
packet_send2(void) |
packet_send2(void) |
{ |
{ |
static u_int32_t seqnr = 0; |
static u_int32_t seqnr = 0; |
|
|
* Check bytes |
* Check bytes |
*/ |
*/ |
|
|
int |
static int |
packet_read_poll1(int *payload_len_ptr) |
packet_read_poll1(int *payload_len_ptr) |
{ |
{ |
u_int len, padded_len; |
u_int len, padded_len; |
|
|
return type; |
return type; |
} |
} |
|
|
int |
static int |
packet_read_poll2(int *payload_len_ptr) |
packet_read_poll2(int *payload_len_ptr) |
{ |
{ |
static u_int32_t seqnr = 0; |
static u_int32_t seqnr = 0; |