summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/packet.h b/packet.h
index 676ed8aaa..7ff2812fe 100644
--- a/packet.h
+++ b/packet.h
@@ -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);
62void packet_get_keyiv(int, u_char *, u_int); 62void packet_get_keyiv(int, u_char *, u_int);
63int packet_get_keycontext(int, u_char *); 63int packet_get_keycontext(int, u_char *);
64void packet_set_keycontext(int, u_char *); 64void packet_set_keycontext(int, u_char *);
65void packet_get_state(int, u_int32_t *, u_int64_t *, u_int32_t *); 65u_int32_t packet_get_seqnr(int);
66void packet_set_state(int, u_int32_t, u_int64_t, u_int32_t); 66void packet_set_seqnr(int, u_int32_t);
67int packet_get_ssh1_cipher(void); 67int packet_get_ssh1_cipher(void);
68void packet_set_iv(int, u_char *); 68void packet_set_iv(int, u_char *);
69 69
@@ -81,8 +81,8 @@ void packet_add_padding(u_char);
81void tty_make_modes(int, struct termios *); 81void tty_make_modes(int, struct termios *);
82void tty_parse_modes(int, int *); 82void tty_parse_modes(int, int *);
83 83
84extern u_int max_packet_size; 84extern int max_packet_size;
85u_int packet_set_maxsize(u_int); 85int 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);
90do { \ 90do { \
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
99int packet_need_rekeying(void);
100void packet_set_rekey_limit(u_int32_t);
101
102#endif /* PACKET_H */ 99#endif /* PACKET_H */