diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-04 14:38:59 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-04 14:38:59 +1000 |
commit | 33b13568b520b25990261206e10c941a9270238f (patch) | |
tree | be9d549ee0c9c7774e3ec1da8d807b2e04b00bec /packet.h | |
parent | 193ba88dd6e9d6bcd5f476c7f5ddde8fd0b752bf (diff) |
- OpenBSD CVS update:
- [packet.h packet.c]
ssh2 packet format
- [packet.h packet.c nchan2.ms nchan.h compat.h compat.c]
[channels.h channels.c]
channel layer support for ssh2
- [kex.h kex.c hmac.h hmac.c dsa.c dsa.h]
DSA, keyexchange, algorithm agreement for ssh2
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -13,7 +13,7 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | /* RCSID("$Id: packet.h,v 1.10 2000/03/17 12:40:16 damien Exp $"); */ | 16 | /* RCSID("$Id: packet.h,v 1.11 2000/04/04 04:39:03 damien Exp $"); */ |
17 | 17 | ||
18 | #ifndef PACKET_H | 18 | #ifndef PACKET_H |
19 | #define PACKET_H | 19 | #define PACKET_H |
@@ -90,9 +90,12 @@ void packet_put_int(unsigned int value); | |||
90 | 90 | ||
91 | /* Appends an arbitrary precision integer to packet data. */ | 91 | /* Appends an arbitrary precision integer to packet data. */ |
92 | void packet_put_bignum(BIGNUM * value); | 92 | void packet_put_bignum(BIGNUM * value); |
93 | void packet_put_bignum2(BIGNUM * value); | ||
93 | 94 | ||
94 | /* Appends a string to packet data. */ | 95 | /* Appends a string to packet data. */ |
95 | void packet_put_string(const char *buf, unsigned int len); | 96 | void packet_put_string(const char *buf, unsigned int len); |
97 | void packet_put_cstring(const char *str); | ||
98 | void packet_put_raw(const char *buf, unsigned int len); | ||
96 | 99 | ||
97 | /* | 100 | /* |
98 | * Finalizes and sends the packet. If the encryption key has been set, | 101 | * Finalizes and sends the packet. If the encryption key has been set, |
@@ -136,6 +139,8 @@ unsigned int packet_get_int(void); | |||
136 | * must have been initialized before this call. | 139 | * must have been initialized before this call. |
137 | */ | 140 | */ |
138 | void packet_get_bignum(BIGNUM * value, int *length_ptr); | 141 | void packet_get_bignum(BIGNUM * value, int *length_ptr); |
142 | void packet_get_bignum2(BIGNUM * value, int *length_ptr); | ||
143 | char *packet_get_raw(int *length_ptr); | ||
139 | 144 | ||
140 | /* | 145 | /* |
141 | * Returns a string from the packet data. The string is allocated using | 146 | * Returns a string from the packet data. The string is allocated using |
@@ -202,4 +207,7 @@ do { \ | |||
202 | int packet_connection_is_on_socket(void); | 207 | int packet_connection_is_on_socket(void); |
203 | int packet_connection_is_ipv4(void); | 208 | int packet_connection_is_ipv4(void); |
204 | 209 | ||
210 | /* enable SSH2 packet format */ | ||
211 | void packet_set_ssh2_format(void); | ||
212 | |||
205 | #endif /* PACKET_H */ | 213 | #endif /* PACKET_H */ |