summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/kex.h b/kex.h
index 99a7d55bf..f70b81fc1 100644
--- a/kex.h
+++ b/kex.h
@@ -34,6 +34,20 @@
34#include "leakmalloc.h" 34#include "leakmalloc.h"
35#endif 35#endif
36 36
37#ifdef WITH_OPENSSL
38# ifdef OPENSSL_HAS_ECC
39# include <openssl/ec.h>
40# else /* OPENSSL_HAS_ECC */
41# define EC_KEY void
42# define EC_GROUP void
43# define EC_POINT void
44# endif /* OPENSSL_HAS_ECC */
45#else /* WITH_OPENSSL */
46# define EC_KEY void
47# define EC_GROUP void
48# define EC_POINT void
49#endif /* WITH_OPENSSL */
50
37#define KEX_COOKIE_LEN 16 51#define KEX_COOKIE_LEN 16
38 52
39#define KEX_DH1 "diffie-hellman-group1-sha1" 53#define KEX_DH1 "diffie-hellman-group1-sha1"
@@ -204,4 +218,10 @@ derive_ssh1_session_id(BIGNUM *, BIGNUM *, u_int8_t[8], u_int8_t[16]);
204void dump_digest(char *, u_char *, int); 218void dump_digest(char *, u_char *, int);
205#endif 219#endif
206 220
221#if !defined(WITH_OPENSSL) || !defined(OPENSSL_HAS_ECC)
222# undef EC_KEY
223# undef EC_GROUP
224# undef EC_POINT
225#endif
226
207#endif 227#endif