version 1.35, 2002/06/19 18:01:00 |
version 1.35.4.2, 2004/03/04 18:18:16 |
|
|
void packet_get_keyiv(int, u_char *, u_int); |
void packet_get_keyiv(int, u_char *, u_int); |
int packet_get_keycontext(int, u_char *); |
int packet_get_keycontext(int, u_char *); |
void packet_set_keycontext(int, u_char *); |
void packet_set_keycontext(int, u_char *); |
u_int32_t packet_get_seqnr(int); |
void packet_get_state(int, u_int32_t *, u_int64_t *, u_int32_t *); |
void packet_set_seqnr(int, u_int32_t); |
void packet_set_state(int, u_int32_t, u_int64_t, u_int32_t); |
int packet_get_ssh1_cipher(void); |
int packet_get_ssh1_cipher(void); |
void packet_set_iv(int, u_char *); |
void packet_set_iv(int, u_char *); |
|
|
|
|
void tty_make_modes(int, struct termios *); |
void tty_make_modes(int, struct termios *); |
void tty_parse_modes(int, int *); |
void tty_parse_modes(int, int *); |
|
|
extern int max_packet_size; |
extern u_int max_packet_size; |
int packet_set_maxsize(int); |
u_int packet_set_maxsize(u_int); |
#define packet_get_maxsize() max_packet_size |
#define packet_get_maxsize() max_packet_size |
|
|
/* don't allow remaining bytes after the end of the message */ |
/* don't allow remaining bytes after the end of the message */ |
|
|
do { \ |
do { \ |
int _len = packet_remaining(); \ |
int _len = packet_remaining(); \ |
if (_len > 0) { \ |
if (_len > 0) { \ |
log("Packet integrity error (%d bytes remaining) at %s:%d", \ |
logit("Packet integrity error (%d bytes remaining) at %s:%d", \ |
_len ,__FILE__, __LINE__); \ |
_len ,__FILE__, __LINE__); \ |
packet_disconnect("Packet integrity error."); \ |
packet_disconnect("Packet integrity error."); \ |
} \ |
} \ |
} while (0) |
} while (0) |
|
|
|
int packet_need_rekeying(void); |
|
void packet_set_rekey_limit(u_int32_t); |
|
|
#endif /* PACKET_H */ |
#endif /* PACKET_H */ |