summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-04 14:38:59 +1000
committerDamien Miller <djm@mindrot.org>2000-04-04 14:38:59 +1000
commit33b13568b520b25990261206e10c941a9270238f (patch)
treebe9d549ee0c9c7774e3ec1da8d807b2e04b00bec /packet.h
parent193ba88dd6e9d6bcd5f476c7f5ddde8fd0b752bf (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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index d1fc41dd1..39c0edea2 100644
--- a/packet.h
+++ b/packet.h
@@ -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. */
92void packet_put_bignum(BIGNUM * value); 92void packet_put_bignum(BIGNUM * value);
93void packet_put_bignum2(BIGNUM * value);
93 94
94/* Appends a string to packet data. */ 95/* Appends a string to packet data. */
95void packet_put_string(const char *buf, unsigned int len); 96void packet_put_string(const char *buf, unsigned int len);
97void packet_put_cstring(const char *str);
98void 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 */
138void packet_get_bignum(BIGNUM * value, int *length_ptr); 141void packet_get_bignum(BIGNUM * value, int *length_ptr);
142void packet_get_bignum2(BIGNUM * value, int *length_ptr);
143char *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 { \
202int packet_connection_is_on_socket(void); 207int packet_connection_is_on_socket(void);
203int packet_connection_is_ipv4(void); 208int packet_connection_is_ipv4(void);
204 209
210/* enable SSH2 packet format */
211void packet_set_ssh2_format(void);
212
205#endif /* PACKET_H */ 213#endif /* PACKET_H */