diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-26 12:16:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-26 12:16:12 +0000 |
commit | 248fc3245a98731cf6fbb1bf460cd4e2e2d56de8 (patch) | |
tree | c0606c24a1c74d5f507d267b03d267a5cfaf4009 /src/regex/regex_internal_dht.c | |
parent | c0101989bb0864a3688f57370e712c91c14ab1cd (diff) | |
download | gnunet-248fc3245a98731cf6fbb1bf460cd4e2e2d56de8.tar.gz gnunet-248fc3245a98731cf6fbb1bf460cd4e2e2d56de8.zip |
-moving REGEX_INTERNAL_check_proof to libgnunetregexblock, integrating proof check into block plugin
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r-- | src/regex/regex_internal_dht.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c index bf15b9a96..af775ef95 100644 --- a/src/regex/regex_internal_dht.c +++ b/src/regex/regex_internal_dht.c | |||
@@ -423,18 +423,6 @@ dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp, | |||
423 | &((struct RegexBlock *)copy)->key, copy, | 423 | &((struct RegexBlock *)copy)->key, copy, |
424 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE) | 424 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE) |
425 | ); | 425 | ); |
426 | len = ntohl (block->n_proof); | ||
427 | { | ||
428 | char proof[len + 1]; | ||
429 | |||
430 | memcpy (proof, &block[1], len); | ||
431 | proof[len] = '\0'; | ||
432 | if (GNUNET_OK != REGEX_INTERNAL_check_proof (proof, key)) | ||
433 | { | ||
434 | GNUNET_break_op (0); | ||
435 | return; | ||
436 | } | ||
437 | } | ||
438 | len = strlen (info->description); | 426 | len = strlen (info->description); |
439 | if (len == ctx->position) // String processed | 427 | if (len == ctx->position) // String processed |
440 | { | 428 | { |