diff options
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.52 2009/06/27 09:29:06 andreas Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.55 2010/11/13 23:27:50 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -19,6 +19,9 @@ | |||
19 | #include <termios.h> | 19 | #include <termios.h> |
20 | 20 | ||
21 | #include <openssl/bn.h> | 21 | #include <openssl/bn.h> |
22 | #ifdef OPENSSL_HAS_ECC | ||
23 | #include <openssl/ec.h> | ||
24 | #endif | ||
22 | 25 | ||
23 | void packet_set_connection(int, int); | 26 | void packet_set_connection(int, int); |
24 | void packet_set_timeout(int, int); | 27 | void packet_set_timeout(int, int); |
@@ -31,7 +34,7 @@ u_int packet_get_encryption_key(u_char *); | |||
31 | void packet_set_protocol_flags(u_int); | 34 | void packet_set_protocol_flags(u_int); |
32 | u_int packet_get_protocol_flags(void); | 35 | u_int packet_get_protocol_flags(void); |
33 | void packet_start_compression(int); | 36 | void packet_start_compression(int); |
34 | void packet_set_interactive(int); | 37 | void packet_set_interactive(int, int, int); |
35 | int packet_is_interactive(void); | 38 | int packet_is_interactive(void); |
36 | void packet_set_server(void); | 39 | void packet_set_server(void); |
37 | void packet_set_authenticated(void); | 40 | void packet_set_authenticated(void); |
@@ -42,6 +45,9 @@ void packet_put_int(u_int value); | |||
42 | void packet_put_int64(u_int64_t value); | 45 | void packet_put_int64(u_int64_t value); |
43 | void packet_put_bignum(BIGNUM * value); | 46 | void packet_put_bignum(BIGNUM * value); |
44 | void packet_put_bignum2(BIGNUM * value); | 47 | void packet_put_bignum2(BIGNUM * value); |
48 | #ifdef OPENSSL_HAS_ECC | ||
49 | void packet_put_ecpoint(const EC_GROUP *, const EC_POINT *); | ||
50 | #endif | ||
45 | void packet_put_string(const void *buf, u_int len); | 51 | void packet_put_string(const void *buf, u_int len); |
46 | void packet_put_cstring(const char *str); | 52 | void packet_put_cstring(const char *str); |
47 | void packet_put_raw(const void *buf, u_int len); | 53 | void packet_put_raw(const void *buf, u_int len); |
@@ -59,8 +65,12 @@ u_int packet_get_int(void); | |||
59 | u_int64_t packet_get_int64(void); | 65 | u_int64_t packet_get_int64(void); |
60 | void packet_get_bignum(BIGNUM * value); | 66 | void packet_get_bignum(BIGNUM * value); |
61 | void packet_get_bignum2(BIGNUM * value); | 67 | void packet_get_bignum2(BIGNUM * value); |
68 | #ifdef OPENSSL_HAS_ECC | ||
69 | void packet_get_ecpoint(const EC_GROUP *, EC_POINT *); | ||
70 | #endif | ||
62 | void *packet_get_raw(u_int *length_ptr); | 71 | void *packet_get_raw(u_int *length_ptr); |
63 | void *packet_get_string(u_int *length_ptr); | 72 | void *packet_get_string(u_int *length_ptr); |
73 | char *packet_get_cstring(u_int *length_ptr); | ||
64 | void *packet_get_string_ptr(u_int *length_ptr); | 74 | void *packet_get_string_ptr(u_int *length_ptr); |
65 | void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 75 | void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
66 | void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 76 | void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); |