diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-20 11:59:06 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-20 11:59:06 -0400 |
commit | 9f0efe920170472a4f757f7d8dc84f41e794f945 (patch) | |
tree | 1c398a26ee45cdbe86872c0c5dca6619a93bc1b3 /auto_tests | |
parent | afa6edecc1739b635162e742cd5c95c2db8127bd (diff) | |
parent | 617b2c8ba59970a67178c602d5348d036140d559 (diff) |
Merge branch 'master' into refactor
Diffstat (limited to 'auto_tests')
-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 | { |