From: Christian Grothoff Date: Fri, 8 Oct 2010 14:19:06 +0000 (+0000) Subject: enable out-of-gnunet build X-Git-Tag: initial-import-from-subversion-38251~20106 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=28857f155429eebd86d764db00fdb83d6091ea8b;p=oweals%2Fgnunet.git enable out-of-gnunet build --- 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