gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13231 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r13231 - gnunet/src/util
Date: Fri, 8 Oct 2010 16:19:06 +0200

Author: grothoff
Date: 2010-10-08 16:19:06 +0200 (Fri, 08 Oct 2010)
New Revision: 13231

Modified:
   gnunet/src/util/crypto_hkdf.c
Log:
enable out-of-gnunet build

Modified: gnunet/src/util/crypto_hkdf.c
===================================================================
--- gnunet/src/util/crypto_hkdf.c       2010-10-08 14:12:08 UTC (rev 13230)
+++ gnunet/src/util/crypto_hkdf.c       2010-10-08 14:19:06 UTC (rev 13231)
@@ -36,13 +36,30 @@
  * - 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
 
-#define DEBUG_HKDF GNUNET_NO
+#include <gcrypt.h>
 
+
 /**
  * @brief Compute the HMAC
  * @todo use chunked buffers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]