aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_block_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-05 15:26:22 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-05 15:26:22 +0000
commita64be7c7ae18efb4214e7335e39cf90348d1039f (patch)
tree82caf96b99449c19901473714037b4e831614b11 /src/include/gnunet_block_lib.h
parentc8a23b6fce4dfadda4485492f10a4accc954b111 (diff)
downloadgnunet-a64be7c7ae18efb4214e7335e39cf90348d1039f.tar.gz
gnunet-a64be7c7ae18efb4214e7335e39cf90348d1039f.zip
stuff
Diffstat (limited to 'src/include/gnunet_block_lib.h')
-rw-r--r--src/include/gnunet_block_lib.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/gnunet_block_lib.h b/src/include/gnunet_block_lib.h
index bdbaeade5..18cb7b7f3 100644
--- a/src/include/gnunet_block_lib.h
+++ b/src/include/gnunet_block_lib.h
@@ -87,8 +87,14 @@ enum GNUNET_BLOCK_Type
87 /** 87 /**
88 * Block for testing. 88 * Block for testing.
89 */ 89 */
90 GNUNET_BLOCK_TYPE_TEST = 8 90 GNUNET_BLOCK_TYPE_TEST = 8,
91 91
92#if HAVE_MALICIOUS
93 /**
94 * Block for simulating malicious peers.
95 */
96 GNUNET_BLOCK_DHT_MALICIOUS_MESSAGE_TYPE = 9
97#endif
92 }; 98 };
93 99
94 100
@@ -212,7 +218,9 @@ GNUNET_BLOCK_evaluate (struct GNUNET_BLOCK_Context *ctx,
212 * @param block block to get the key for 218 * @param block block to get the key for
213 * @param block_size number of bytes in block 219 * @param block_size number of bytes in block
214 * @param key set to the key (query) for the given block 220 * @param key set to the key (query) for the given block
215 * @return GNUNET_OK on success, GNUNET_SYSERR if type not supported 221 * @return GNUNET_OK on success,
222 * GNUNET_NO if the block is malformed, FIXME: cg!
223 * GNUNET_SYSERR if type not supported
216 * (or if extracting a key from a block of this type does not work) 224 * (or if extracting a key from a block of this type does not work)
217 */ 225 */
218int 226int