enable out-of-gnunet build
authorChristian Grothoff <christian@grothoff.org>
Fri, 8 Oct 2010 14:19:06 +0000 (14:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 8 Oct 2010 14:19:06 +0000 (14:19 +0000)
src/util/crypto_hkdf.c

index 0aa653658503d373dc1d79e809a6e616f9fd2825..eb91780cbbc8f39fa49d70ddcb2f21514f2f6a17 100644 (file)
  * - Matthias Wachs (08.10.2010)
  */
 
-#include <gcrypt.h>
+/**
+ * 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 <stdlib.h>
+#endif
+
+#include <gcrypt.h>
 
-#define DEBUG_HKDF GNUNET_NO
 
 /**
  * @brief Compute the HMAC