version 1.112.2.1, 2004/08/19 04:13:26 |
version 1.112.2.2, 2005/03/10 17:15:04 |
|
|
buffer_len(&compression_buffer)); |
buffer_len(&compression_buffer)); |
} |
} |
type = buffer_get_char(&incoming_packet); |
type = buffer_get_char(&incoming_packet); |
|
if (type < SSH_MSG_MIN || type > SSH_MSG_MAX) |
|
packet_disconnect("Invalid ssh1 packet type: %d", type); |
return type; |
return type; |
} |
} |
|
|
|
|
* return length of payload (without type field) |
* return length of payload (without type field) |
*/ |
*/ |
type = buffer_get_char(&incoming_packet); |
type = buffer_get_char(&incoming_packet); |
|
if (type < SSH2_MSG_MIN || type >= SSH2_MSG_LOCAL_MIN) |
|
packet_disconnect("Invalid ssh2 packet type: %d", type); |
if (type == SSH2_MSG_NEWKEYS) |
if (type == SSH2_MSG_NEWKEYS) |
set_newkeys(MODE_IN); |
set_newkeys(MODE_IN); |
#ifdef PACKET_DEBUG |
#ifdef PACKET_DEBUG |