summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-09-10 12:28:24 +1000
committerDarren Tucker <dtucker@zip.com.au>2010-09-10 12:28:24 +1000
commit8ccb7392e7ea45d2997afdfa981a450c7db85211 (patch)
tree5dd0769c5ec6a54fffb0e77a670bdc4e84046a6c /packet.h
parent6af914a15c0c33e8b5bab5ca61919b8562ff1db9 (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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/packet.h b/packet.h
index 827561cdb..864b82855 100644
--- a/packet.h
+++ b/packet.h
@@ -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
24void packet_set_connection(int, int); 26void packet_set_connection(int, int);
25void packet_set_timeout(int, int); 27void packet_set_timeout(int, int);
@@ -43,7 +45,9 @@ void packet_put_int(u_int value);
43void packet_put_int64(u_int64_t value); 45void packet_put_int64(u_int64_t value);
44void packet_put_bignum(BIGNUM * value); 46void packet_put_bignum(BIGNUM * value);
45void packet_put_bignum2(BIGNUM * value); 47void packet_put_bignum2(BIGNUM * value);
48#ifdef OPENSSL_HAS_ECC
46void packet_put_ecpoint(const EC_GROUP *, const EC_POINT *); 49void packet_put_ecpoint(const EC_GROUP *, const EC_POINT *);
50#endif
47void packet_put_string(const void *buf, u_int len); 51void packet_put_string(const void *buf, u_int len);
48void packet_put_cstring(const char *str); 52void packet_put_cstring(const char *str);
49void packet_put_raw(const void *buf, u_int len); 53void packet_put_raw(const void *buf, u_int len);
@@ -61,7 +65,9 @@ u_int packet_get_int(void);
61u_int64_t packet_get_int64(void); 65u_int64_t packet_get_int64(void);
62void packet_get_bignum(BIGNUM * value); 66void packet_get_bignum(BIGNUM * value);
63void packet_get_bignum2(BIGNUM * value); 67void packet_get_bignum2(BIGNUM * value);
68#ifdef OPENSSL_HAS_ECC
64void packet_get_ecpoint(const EC_GROUP *, EC_POINT *); 69void packet_get_ecpoint(const EC_GROUP *, EC_POINT *);
70#endif
65void *packet_get_raw(u_int *length_ptr); 71void *packet_get_raw(u_int *length_ptr);
66void *packet_get_string(u_int *length_ptr); 72void *packet_get_string(u_int *length_ptr);
67char *packet_get_cstring(u_int *length_ptr); 73char *packet_get_cstring(u_int *length_ptr);