diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-01-16 10:29:11 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-01-16 10:29:11 -0500 |
commit | b987081941bda22e5e37a09c75ffc790c270624b (patch) | |
tree | 06837e1f3a483cb5ea133b5f808c3d5fafd7be52 /src | |
parent | f57722d23ec82b711fffc46a8649a8651df7125a (diff) | |
download | tor-b987081941bda22e5e37a09c75ffc790c270624b.tar.gz tor-b987081941bda22e5e37a09c75ffc790c270624b.zip |
Check for nacl headers in nacl/ subdir
Fix for bug 7972
Diffstat (limited to 'src')
-rw-r--r-- | src/common/crypto_curve25519.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/crypto_curve25519.c b/src/common/crypto_curve25519.c index 5636fe63e3..88705427a8 100644 --- a/src/common/crypto_curve25519.c +++ b/src/common/crypto_curve25519.c @@ -22,7 +22,11 @@ int curve25519_donna(uint8_t *mypublic, const uint8_t *secret, const uint8_t *basepoint); #endif #ifdef USE_CURVE25519_NACL +#ifdef HAVE_CRYPTO_SCALARMULT_CURVE25519_H #include <crypto_scalarmult_curve25519.h> +#elif defined(HAVE_NACL_CRYPTO_SCALARMULT_CURVE25519_H) +#include <nacl/crypto_scalarmult_curve25519.h> +#endif #endif int |