diff options
Diffstat (limited to 'auto_tests/crypto_test.c')
-rw-r--r-- | auto_tests/crypto_test.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/auto_tests/crypto_test.c b/auto_tests/crypto_test.c index 917aa81d..39893515 100644 --- a/auto_tests/crypto_test.c +++ b/auto_tests/crypto_test.c | |||
@@ -9,12 +9,6 @@ | |||
9 | #include <check.h> | 9 | #include <check.h> |
10 | #include <stdlib.h> | 10 | #include <stdlib.h> |
11 | #include <time.h> | 11 | #include <time.h> |
12 | #ifndef VANILLA_NACL | ||
13 | #include <sodium.h> | ||
14 | #else | ||
15 | #include <crypto_box.h> | ||
16 | #define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) | ||
17 | #endif | ||
18 | 12 | ||
19 | void rand_bytes(uint8_t *b, size_t blen) | 13 | void rand_bytes(uint8_t *b, size_t blen) |
20 | { | 14 | { |
@@ -276,6 +270,7 @@ START_TEST(test_large_data_symmetric) | |||
276 | } | 270 | } |
277 | END_TEST | 271 | END_TEST |
278 | 272 | ||
273 | |||
279 | #define DEFTESTCASE(NAME) \ | 274 | #define DEFTESTCASE(NAME) \ |
280 | TCase *NAME = tcase_create(#NAME); \ | 275 | TCase *NAME = tcase_create(#NAME); \ |
281 | tcase_add_test(NAME, test_##NAME); \ | 276 | tcase_add_test(NAME, test_##NAME); \ |