projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a88eb
)
enable out-of-gnunet build
author
Christian Grothoff
<christian@grothoff.org>
Fri, 8 Oct 2010 14:19:06 +0000
(14:19 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 8 Oct 2010 14:19:06 +0000
(14:19 +0000)
src/util/crypto_hkdf.c
patch
|
blob
|
history
diff --git
a/src/util/crypto_hkdf.c
b/src/util/crypto_hkdf.c
index 0aa653658503d373dc1d79e809a6e616f9fd2825..eb91780cbbc8f39fa49d70ddcb2f21514f2f6a17 100644
(file)
--- a/
src/util/crypto_hkdf.c
+++ b/
src/util/crypto_hkdf.c
@@
-36,12
+36,29
@@
* - 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