diff options
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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); | |||
39 | void packet_start(u_char); | 39 | void packet_start(u_char); |
40 | void packet_put_char(int ch); | 40 | void packet_put_char(int ch); |
41 | void packet_put_int(u_int value); | 41 | void packet_put_int(u_int value); |
42 | void packet_put_int64(u_int64_t value); | ||
42 | void packet_put_bignum(BIGNUM * value); | 43 | void packet_put_bignum(BIGNUM * value); |
43 | void packet_put_bignum2(BIGNUM * value); | 44 | void packet_put_bignum2(BIGNUM * value); |
44 | void packet_put_string(const void *buf, u_int len); | 45 | void 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 | ||
56 | u_int packet_get_char(void); | 57 | u_int packet_get_char(void); |
57 | u_int packet_get_int(void); | 58 | u_int packet_get_int(void); |
59 | u_int64_t packet_get_int64(void); | ||
58 | void packet_get_bignum(BIGNUM * value); | 60 | void packet_get_bignum(BIGNUM * value); |
59 | void packet_get_bignum2(BIGNUM * value); | 61 | void packet_get_bignum2(BIGNUM * value); |
60 | void *packet_get_raw(u_int *length_ptr); | 62 | void *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 *); | |||
72 | void packet_set_state(int, u_int32_t, u_int64_t, u_int32_t, u_int64_t); | 74 | void packet_set_state(int, u_int32_t, u_int64_t, u_int32_t, u_int64_t); |
73 | int packet_get_ssh1_cipher(void); | 75 | int packet_get_ssh1_cipher(void); |
74 | void packet_set_iv(int, u_char *); | 76 | void packet_set_iv(int, u_char *); |
77 | void *packet_get_newkeys(int); | ||
75 | 78 | ||
76 | void packet_write_poll(void); | 79 | void packet_write_poll(void); |
77 | void packet_write_wait(void); | 80 | void packet_write_wait(void); |
@@ -87,10 +90,10 @@ void packet_add_padding(u_char); | |||
87 | void tty_make_modes(int, struct termios *); | 90 | void tty_make_modes(int, struct termios *); |
88 | void tty_parse_modes(int, int *); | 91 | void tty_parse_modes(int, int *); |
89 | 92 | ||
90 | extern u_int max_packet_size; | 93 | void packet_set_alive_timeouts(int); |
91 | extern int keep_alive_timeouts; | 94 | int packet_inc_alive_timeouts(void); |
92 | int packet_set_maxsize(u_int); | 95 | int packet_set_maxsize(u_int); |
93 | #define packet_get_maxsize() max_packet_size | 96 | u_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 { \ | |||
106 | int packet_need_rekeying(void); | 109 | int packet_need_rekeying(void); |
107 | void packet_set_rekey_limit(u_int32_t); | 110 | void packet_set_rekey_limit(u_int32_t); |
108 | 111 | ||
112 | void packet_backup_state(void); | ||
113 | void packet_restore_state(void); | ||
114 | |||
115 | void *packet_get_input(void); | ||
116 | void *packet_get_output(void); | ||
117 | |||
109 | #endif /* PACKET_H */ | 118 | #endif /* PACKET_H */ |