summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Qureshi <stqism@risingstormgames.com>2013-08-20 02:29:17 -0700
committerSean Qureshi <stqism@risingstormgames.com>2013-08-20 02:29:17 -0700
commit3cd582aeb3b715ac5d0fecbceccd8493b1221e57 (patch)
treea4dff9c01b0f92cf9081b035bdafe1ce221f51fd
parenta03dcbb54ef1b8dfb4ae0b1f1b237bbe84b27b92 (diff)
Fixed issue 470, crypto_test still forcing libsodium when NaCL is chosen
-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{