summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/packet.h b/packet.h
index 03bb87c9b..33523d750 100644
--- a/packet.h
+++ b/packet.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.h,v 1.49 2008/07/10 18:08:11 markus Exp $ */ 1/* $OpenBSD: packet.h,v 1.52 2009/06/27 09:29:06 andreas Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -39,6 +39,7 @@ void packet_set_authenticated(void);
39void packet_start(u_char); 39void packet_start(u_char);
40void packet_put_char(int ch); 40void packet_put_char(int ch);
41void packet_put_int(u_int value); 41void packet_put_int(u_int value);
42void packet_put_int64(u_int64_t value);
42void packet_put_bignum(BIGNUM * value); 43void packet_put_bignum(BIGNUM * value);
43void packet_put_bignum2(BIGNUM * value); 44void packet_put_bignum2(BIGNUM * value);
44void packet_put_string(const void *buf, u_int len); 45void packet_put_string(const void *buf, u_int len);
@@ -55,6 +56,7 @@ int packet_read_poll_seqnr(u_int32_t *seqnr_p);
55 56
56u_int packet_get_char(void); 57u_int packet_get_char(void);
57u_int packet_get_int(void); 58u_int packet_get_int(void);
59u_int64_t packet_get_int64(void);
58void packet_get_bignum(BIGNUM * value); 60void packet_get_bignum(BIGNUM * value);
59void packet_get_bignum2(BIGNUM * value); 61void packet_get_bignum2(BIGNUM * value);
60void *packet_get_raw(u_int *length_ptr); 62void *packet_get_raw(u_int *length_ptr);
@@ -72,6 +74,7 @@ void packet_get_state(int, u_int32_t *, u_int64_t *, u_int32_t *, u_int64_t *);
72void packet_set_state(int, u_int32_t, u_int64_t, u_int32_t, u_int64_t); 74void packet_set_state(int, u_int32_t, u_int64_t, u_int32_t, u_int64_t);
73int packet_get_ssh1_cipher(void); 75int packet_get_ssh1_cipher(void);
74void packet_set_iv(int, u_char *); 76void packet_set_iv(int, u_char *);
77void *packet_get_newkeys(int);
75 78
76void packet_write_poll(void); 79void packet_write_poll(void);
77void packet_write_wait(void); 80void packet_write_wait(void);
@@ -87,10 +90,10 @@ void packet_add_padding(u_char);
87void tty_make_modes(int, struct termios *); 90void tty_make_modes(int, struct termios *);
88void tty_parse_modes(int, int *); 91void tty_parse_modes(int, int *);
89 92
90extern u_int max_packet_size; 93void packet_set_alive_timeouts(int);
91extern int keep_alive_timeouts; 94int packet_inc_alive_timeouts(void);
92int packet_set_maxsize(u_int); 95int packet_set_maxsize(u_int);
93#define packet_get_maxsize() max_packet_size 96u_int packet_get_maxsize(void);
94 97
95/* don't allow remaining bytes after the end of the message */ 98/* don't allow remaining bytes after the end of the message */
96#define packet_check_eom() \ 99#define packet_check_eom() \
@@ -106,4 +109,10 @@ do { \
106int packet_need_rekeying(void); 109int packet_need_rekeying(void);
107void packet_set_rekey_limit(u_int32_t); 110void packet_set_rekey_limit(u_int32_t);
108 111
112void packet_backup_state(void);
113void packet_restore_state(void);
114
115void *packet_get_input(void);
116void *packet_get_output(void);
117
109#endif /* PACKET_H */ 118#endif /* PACKET_H */