diff options
author | iphydf <iphydf@users.noreply.github.com> | 2017-01-05 19:05:10 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2017-01-08 15:27:26 +0000 |
commit | 8f1dbaa2c56112a917c1eb6131d5074684e40f1c (patch) | |
tree | c73ca24a675bbdcee7a57b636af093a993950011 /toxencryptsave | |
parent | bec03de2baf69d8dda67fab3f1d26e4e7c6c6378 (diff) |
Set up autotools build to build against vanilla NaCl.
Fixes #363.
Diffstat (limited to 'toxencryptsave')
-rw-r--r-- | toxencryptsave/toxencryptsave.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxencryptsave/toxencryptsave.c b/toxencryptsave/toxencryptsave.c index bd56e780..0c799bfb 100644 --- a/toxencryptsave/toxencryptsave.c +++ b/toxencryptsave/toxencryptsave.c | |||
@@ -31,8 +31,10 @@ | |||
31 | #define SET_ERROR_PARAMETER(param, x) {if(param) {*param = x;}} | 31 | #define SET_ERROR_PARAMETER(param, x) {if(param) {*param = x;}} |
32 | 32 | ||
33 | #ifdef VANILLA_NACL | 33 | #ifdef VANILLA_NACL |
34 | #include <crypto_box.h> | ||
34 | #include <crypto_hash_sha256.h> | 35 | #include <crypto_hash_sha256.h> |
35 | #include "crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h" | 36 | #include "crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h" |
37 | #define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) | ||
36 | #else | 38 | #else |
37 | #include <sodium.h> | 39 | #include <sodium.h> |
38 | #endif | 40 | #endif |