diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-20 04:39:12 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-20 04:39:12 -0700 |
commit | 3707833f0b77182a1fffd154be26b33f70314809 (patch) | |
tree | f73e11ebac407e2236c572bdd224dddaa997a0c5 /auto_tests/crypto_test.c | |
parent | b16906d5e42cf65e198de0ccd21155df4a364c56 (diff) | |
parent | 3cd582aeb3b715ac5d0fecbceccd8493b1221e57 (diff) |
Merge pull request #502 from stqism/issue-470-fix
Fixed issue #470, crypto_test still forcing libsodium when NaCL is chosen
Diffstat (limited to 'auto_tests/crypto_test.c')
-rw-r--r-- | auto_tests/crypto_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/auto_tests/crypto_test.c b/auto_tests/crypto_test.c index 6b9f6113..01c545c8 100644 --- a/auto_tests/crypto_test.c +++ b/auto_tests/crypto_test.c | |||
@@ -5,7 +5,12 @@ | |||
5 | #include <check.h> | 5 | #include <check.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include <time.h> | 7 | #include <time.h> |
8 | #ifndef VANILLA_NACL | ||
8 | #include <sodium.h> | 9 | #include <sodium.h> |
10 | #else | ||
11 | #include <crypto_box.h> | ||
12 | #define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) | ||
13 | #endif | ||
9 | 14 | ||
10 | void rand_bytes(uint8_t *b, size_t blen) | 15 | void rand_bytes(uint8_t *b, size_t blen) |
11 | { | 16 | { |