aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/curve25519.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/curve25519.h')
-rw-r--r--include/libssh/curve25519.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/curve25519.h b/include/libssh/curve25519.h
index 35e25be0..0406b9ee 100644
--- a/include/libssh/curve25519.h
+++ b/include/libssh/curve25519.h
@@ -39,7 +39,10 @@ int crypto_scalarmult_base(unsigned char *q, const unsigned char *n);
int crypto_scalarmult(unsigned char *q, const unsigned char *n, const unsigned char *p);
#endif /* WITH_NACL */
-#define HAVE_CURVE25519
+#ifdef HAVE_ECC
+#define HAVE_CURVE25519 1
+#endif
+
typedef unsigned char ssh_curve25519_pubkey[CURVE25519_PUBKEY_SIZE];
typedef unsigned char ssh_curve25519_privkey[CURVE25519_PRIVKEY_SIZE];