mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed issue 470, crypto_test still forcing libsodium when NaCL is chosen
This commit is contained in:
parent
a03dcbb54e
commit
3cd582aeb3
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user