diff options
author | Damien Miller <djm@mindrot.org> | 2001-12-21 14:56:54 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-12-21 14:56:54 +1100 |
commit | 5a6b4fe22583394886092aad5787b5fa8355276e (patch) | |
tree | c6366cbaf2c3ea9bd1ac8f162f9452e1e9ca0434 /packet.h | |
parent | f6681a3a96ae06d62db49594ba0dcf352f817801 (diff) |
- stevesk@cvs.openbsd.org 2001/12/19 17:16:13
[authfile.c bufaux.c bufaux.h buffer.c buffer.h packet.c packet.h ssh.c]
change the buffer/packet interface to use void* vs. char*; ok markus@
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -11,7 +11,7 @@ | |||
11 | * called by a name other than "ssh" or "Secure Shell". | 11 | * called by a name other than "ssh" or "Secure Shell". |
12 | */ | 12 | */ |
13 | 13 | ||
14 | /* RCSID("$OpenBSD: packet.h,v 1.26 2001/11/07 16:03:17 markus Exp $"); */ | 14 | /* RCSID("$OpenBSD: packet.h,v 1.27 2001/12/19 17:16:13 stevesk Exp $"); */ |
15 | 15 | ||
16 | #ifndef PACKET_H | 16 | #ifndef PACKET_H |
17 | #define PACKET_H | 17 | #define PACKET_H |
@@ -35,9 +35,9 @@ void packet_put_char(int ch); | |||
35 | void packet_put_int(u_int value); | 35 | void packet_put_int(u_int value); |
36 | void packet_put_bignum(BIGNUM * value); | 36 | void packet_put_bignum(BIGNUM * value); |
37 | void packet_put_bignum2(BIGNUM * value); | 37 | void packet_put_bignum2(BIGNUM * value); |
38 | void packet_put_string(const char *buf, u_int len); | 38 | void packet_put_string(const void *buf, u_int len); |
39 | void packet_put_cstring(const char *str); | 39 | void packet_put_cstring(const char *str); |
40 | void packet_put_raw(const char *buf, u_int len); | 40 | void packet_put_raw(const void *buf, u_int len); |
41 | void packet_send(void); | 41 | void packet_send(void); |
42 | 42 | ||
43 | int packet_read(int *payload_len_ptr); | 43 | int packet_read(int *payload_len_ptr); |
@@ -49,8 +49,8 @@ u_int packet_get_char(void); | |||
49 | u_int packet_get_int(void); | 49 | u_int packet_get_int(void); |
50 | void packet_get_bignum(BIGNUM * value, int *length_ptr); | 50 | void packet_get_bignum(BIGNUM * value, int *length_ptr); |
51 | void packet_get_bignum2(BIGNUM * value, int *length_ptr); | 51 | void packet_get_bignum2(BIGNUM * value, int *length_ptr); |
52 | char *packet_get_raw(int *length_ptr); | 52 | void *packet_get_raw(int *length_ptr); |
53 | char *packet_get_string(u_int *length_ptr); | 53 | void *packet_get_string(u_int *length_ptr); |
54 | void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 54 | void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
55 | void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 55 | void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
56 | 56 | ||