diff options
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -30,6 +30,9 @@ | |||
30 | #include "crypto_api.h" | 30 | #include "crypto_api.h" |
31 | 31 | ||
32 | #ifdef WITH_OPENSSL | 32 | #ifdef WITH_OPENSSL |
33 | # include <openssl/bn.h> | ||
34 | # include <openssl/dh.h> | ||
35 | # include <openssl/ecdsa.h> | ||
33 | # ifdef OPENSSL_HAS_ECC | 36 | # ifdef OPENSSL_HAS_ECC |
34 | # include <openssl/ec.h> | 37 | # include <openssl/ec.h> |
35 | # else /* OPENSSL_HAS_ECC */ | 38 | # else /* OPENSSL_HAS_ECC */ |
@@ -45,18 +48,6 @@ | |||
45 | # define EC_POINT void | 48 | # define EC_POINT void |
46 | #endif /* WITH_OPENSSL */ | 49 | #endif /* WITH_OPENSSL */ |
47 | 50 | ||
48 | #ifdef WITH_OPENSSL | ||
49 | #include <openssl/bn.h> | ||
50 | #include <openssl/dh.h> | ||
51 | #include <openssl/ec.h> | ||
52 | #include <openssl/ecdsa.h> | ||
53 | #else /* OPENSSL */ | ||
54 | #define BIGNUM void | ||
55 | #define DH void | ||
56 | #define EC_KEY void | ||
57 | #define EC_GROUP void | ||
58 | #endif /* WITH_OPENSSL */ | ||
59 | |||
60 | #define KEX_COOKIE_LEN 16 | 51 | #define KEX_COOKIE_LEN 16 |
61 | 52 | ||
62 | #define KEX_DH1 "diffie-hellman-group1-sha1" | 53 | #define KEX_DH1 "diffie-hellman-group1-sha1" |