diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-09-10 12:28:24 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-09-10 12:28:24 +1000 |
commit | 8ccb7392e7ea45d2997afdfa981a450c7db85211 (patch) | |
tree | 5dd0769c5ec6a54fffb0e77a670bdc4e84046a6c /packet.h | |
parent | 6af914a15c0c33e8b5bab5ca61919b8562ff1db9 (diff) |
- (dtucker) [kex.h key.c packet.h ssh-agent.c ssh.c] A few more ECC ifdefs
for missing headers and compiler warnings.
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -19,7 +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 | ||
22 | #include <openssl/ec.h> | 23 | #include <openssl/ec.h> |
24 | #endif | ||
23 | 25 | ||
24 | void packet_set_connection(int, int); | 26 | void packet_set_connection(int, int); |
25 | void packet_set_timeout(int, int); | 27 | void packet_set_timeout(int, int); |
@@ -43,7 +45,9 @@ void packet_put_int(u_int value); | |||
43 | void packet_put_int64(u_int64_t value); | 45 | void packet_put_int64(u_int64_t value); |
44 | void packet_put_bignum(BIGNUM * value); | 46 | void packet_put_bignum(BIGNUM * value); |
45 | void packet_put_bignum2(BIGNUM * value); | 47 | void packet_put_bignum2(BIGNUM * value); |
48 | #ifdef OPENSSL_HAS_ECC | ||
46 | void packet_put_ecpoint(const EC_GROUP *, const EC_POINT *); | 49 | void packet_put_ecpoint(const EC_GROUP *, const EC_POINT *); |
50 | #endif | ||
47 | void packet_put_string(const void *buf, u_int len); | 51 | void packet_put_string(const void *buf, u_int len); |
48 | void packet_put_cstring(const char *str); | 52 | void packet_put_cstring(const char *str); |
49 | void packet_put_raw(const void *buf, u_int len); | 53 | void packet_put_raw(const void *buf, u_int len); |
@@ -61,7 +65,9 @@ u_int packet_get_int(void); | |||
61 | u_int64_t packet_get_int64(void); | 65 | u_int64_t packet_get_int64(void); |
62 | void packet_get_bignum(BIGNUM * value); | 66 | void packet_get_bignum(BIGNUM * value); |
63 | void packet_get_bignum2(BIGNUM * value); | 67 | void packet_get_bignum2(BIGNUM * value); |
68 | #ifdef OPENSSL_HAS_ECC | ||
64 | void packet_get_ecpoint(const EC_GROUP *, EC_POINT *); | 69 | void packet_get_ecpoint(const EC_GROUP *, EC_POINT *); |
70 | #endif | ||
65 | void *packet_get_raw(u_int *length_ptr); | 71 | void *packet_get_raw(u_int *length_ptr); |
66 | void *packet_get_string(u_int *length_ptr); | 72 | void *packet_get_string(u_int *length_ptr); |
67 | char *packet_get_cstring(u_int *length_ptr); | 73 | char *packet_get_cstring(u_int *length_ptr); |