summaryrefslogtreecommitdiffstats
path: root/include/libssh/ecdh.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-27 17:38:21 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-27 22:53:53 +0100
commitead1c4b1686ed0c25c69df695ecb05e1549d891f (patch)
tree3876ae293607d9a3b5a221d4a2ac6e792b70fba1 /include/libssh/ecdh.h
parent3e11cb807131d33ed529e1d9402f331676fa2926 (diff)
ecdh: Check if we have ECC support.
Diffstat (limited to 'include/libssh/ecdh.h')
-rw-r--r--include/libssh/ecdh.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/ecdh.h b/include/libssh/ecdh.h
index b35b2af7..8d1e7515 100644
--- a/include/libssh/ecdh.h
+++ b/include/libssh/ecdh.h
@@ -26,7 +26,9 @@
#ifdef HAVE_LIBCRYPTO
#ifdef HAVE_OPENSSL_ECDH_H
-#define HAVE_ECDH
+#ifdef HAVE_ECC
+#define HAVE_ECDH 1
+#endif
#endif /* HAVE_OPENSSL_ECDH_H */
#endif /* HAVE_LIBCRYPTO */