diff options
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.40 2003/06/24 08:23:46 markus Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.37 2003/04/01 10:22:21 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -62,8 +62,8 @@ int packet_get_keyiv_len(int); | |||
62 | void packet_get_keyiv(int, u_char *, u_int); | 62 | void packet_get_keyiv(int, u_char *, u_int); |
63 | int packet_get_keycontext(int, u_char *); | 63 | int packet_get_keycontext(int, u_char *); |
64 | void packet_set_keycontext(int, u_char *); | 64 | void packet_set_keycontext(int, u_char *); |
65 | void packet_get_state(int, u_int32_t *, u_int64_t *, u_int32_t *); | 65 | u_int32_t packet_get_seqnr(int); |
66 | void packet_set_state(int, u_int32_t, u_int64_t, u_int32_t); | 66 | void packet_set_seqnr(int, u_int32_t); |
67 | int packet_get_ssh1_cipher(void); | 67 | int packet_get_ssh1_cipher(void); |
68 | void packet_set_iv(int, u_char *); | 68 | void packet_set_iv(int, u_char *); |
69 | 69 | ||
@@ -81,8 +81,8 @@ void packet_add_padding(u_char); | |||
81 | void tty_make_modes(int, struct termios *); | 81 | void tty_make_modes(int, struct termios *); |
82 | void tty_parse_modes(int, int *); | 82 | void tty_parse_modes(int, int *); |
83 | 83 | ||
84 | extern u_int max_packet_size; | 84 | extern int max_packet_size; |
85 | u_int packet_set_maxsize(u_int); | 85 | int packet_set_maxsize(int); |
86 | #define packet_get_maxsize() max_packet_size | 86 | #define packet_get_maxsize() max_packet_size |
87 | 87 | ||
88 | /* don't allow remaining bytes after the end of the message */ | 88 | /* don't allow remaining bytes after the end of the message */ |
@@ -90,13 +90,10 @@ u_int packet_set_maxsize(u_int); | |||
90 | do { \ | 90 | do { \ |
91 | int _len = packet_remaining(); \ | 91 | int _len = packet_remaining(); \ |
92 | if (_len > 0) { \ | 92 | if (_len > 0) { \ |
93 | logit("Packet integrity error (%d bytes remaining) at %s:%d", \ | 93 | log("Packet integrity error (%d bytes remaining) at %s:%d", \ |
94 | _len ,__FILE__, __LINE__); \ | 94 | _len ,__FILE__, __LINE__); \ |
95 | packet_disconnect("Packet integrity error."); \ | 95 | packet_disconnect("Packet integrity error."); \ |
96 | } \ | 96 | } \ |
97 | } while (0) | 97 | } while (0) |
98 | 98 | ||
99 | int packet_need_rekeying(void); | ||
100 | void packet_set_rekey_limit(u_int32_t); | ||
101 | |||
102 | #endif /* PACKET_H */ | 99 | #endif /* PACKET_H */ |