Fixed issue 470, crypto_test still forcing libsodium when NaCL is chosen

This commit is contained in:
Sean Qureshi 2013-08-20 02:29:17 -07:00
parent a03dcbb54e
commit 3cd582aeb3

View File

@ -5,7 +5,12 @@
#include <check.h> #include <check.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#ifndef VANILLA_NACL
#include <sodium.h> #include <sodium.h>
#else
#include <crypto_box.h>
#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
#endif
void rand_bytes(uint8_t *b, size_t blen) void rand_bytes(uint8_t *b, size_t blen)
{ {