diff options
-rw-r--r-- | src/include/gnunet_block_lib.h | 12 | ||||
-rw-r--r-- | src/include/gnunet_datacache_lib.h | 2 |
2 files changed, 11 insertions, 3 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 | */ |
218 | int | 226 | int |
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h index e0866416d..efce55af4 100644 --- a/src/include/gnunet_datacache_lib.h +++ b/src/include/gnunet_datacache_lib.h | |||
@@ -85,7 +85,7 @@ void GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h); | |||
85 | typedef int (*GNUNET_DATACACHE_Iterator) (void *cls, | 85 | typedef int (*GNUNET_DATACACHE_Iterator) (void *cls, |
86 | struct GNUNET_TIME_Absolute exp, | 86 | struct GNUNET_TIME_Absolute exp, |
87 | const GNUNET_HashCode * key, | 87 | const GNUNET_HashCode * key, |
88 | uint32_t size, | 88 | uint32_t size, /* FIXME: use size_t? */ |
89 | const char *data, | 89 | const char *data, |
90 | enum GNUNET_BLOCK_Type type); | 90 | enum GNUNET_BLOCK_Type type); |
91 | 91 | ||