summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-23 18:08:35 +0000
committerColin Watson <cjwatson@debian.org>2003-09-23 18:08:35 +0000
commitd59fd3e421aa81b8e5e118f3f806081df2aca879 (patch)
tree356a4e607edc979c625bb33db63c656d771478bd /packet.h
parent7505658c58e96b8d270f1928a0e1fa7f3e0c266b (diff)
parent45431c9b4677608680cd071768cbf156b316a7e8 (diff)
Merge 3.7.1p2 to the trunk. I have absolutely no idea yet whether this will
work.
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/packet.h b/packet.h
index 7ff2812fe..676ed8aaa 100644
--- a/packet.h
+++ b/packet.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.h,v 1.37 2003/04/01 10:22:21 markus Exp $ */ 1/* $OpenBSD: packet.h,v 1.40 2003/06/24 08:23:46 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 *);
65u_int32_t packet_get_seqnr(int); 65void packet_get_state(int, u_int32_t *, u_int64_t *, u_int32_t *);
66void packet_set_seqnr(int, u_int32_t); 66void packet_set_state(int, u_int32_t, u_int64_t, 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 int max_packet_size; 84extern u_int max_packet_size;
85int packet_set_maxsize(int); 85u_int packet_set_maxsize(u_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,10 +90,13 @@ int packet_set_maxsize(int);
90do { \ 90do { \
91 int _len = packet_remaining(); \ 91 int _len = packet_remaining(); \
92 if (_len > 0) { \ 92 if (_len > 0) { \
93 log("Packet integrity error (%d bytes remaining) at %s:%d", \ 93 logit("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
99#endif /* PACKET_H */ 102#endif /* PACKET_H */