From 28857f155429eebd86d764db00fdb83d6091ea8b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 8 Oct 2010 14:19:06 +0000 Subject: [PATCH] enable out-of-gnunet build --- src/util/crypto_hkdf.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/util/crypto_hkdf.c b/src/util/crypto_hkdf.c index 0aa653658..eb91780cb 100644 --- a/src/util/crypto_hkdf.c +++ b/src/util/crypto_hkdf.c @@ -36,12 +36,29 @@ * - Matthias Wachs (08.10.2010) */ -#include +/** + * Set this to 0 if you compile this code outside of GNUnet. + */ +#define GNUNET_BUILD 1 + +/** + * Enable debugging. + */ +#define DEBUG_HKDF 0 + +#if GNUNET_BUILD #include "platform.h" #include "gnunet_crypto_lib.h" +#else +#define GNUNET_NO 0 +#define GNUNET_YES 1 +#define GNUNET_SYSERR -1 +#include +#endif + +#include -#define DEBUG_HKDF GNUNET_NO /** * @brief Compute the HMAC -- 2.25.1