summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-20 11:59:06 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-20 11:59:06 -0400
commit9f0efe920170472a4f757f7d8dc84f41e794f945 (patch)
tree1c398a26ee45cdbe86872c0c5dca6619a93bc1b3 /auto_tests
parentafa6edecc1739b635162e742cd5c95c2db8127bd (diff)
parent617b2c8ba59970a67178c602d5348d036140d559 (diff)
Merge branch 'master' into refactor
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/crypto_test.c5
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
10void rand_bytes(uint8_t *b, size_t blen) 15void rand_bytes(uint8_t *b, size_t blen)
11{ 16{