From 248fc3245a98731cf6fbb1bf460cd4e2e2d56de8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 Jun 2013 12:16:12 +0000 Subject: -moving REGEX_INTERNAL_check_proof to libgnunetregexblock, integrating proof check into block plugin --- src/regex/test_regex_iterate_api.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/regex/test_regex_iterate_api.c') diff --git a/src/regex/test_regex_iterate_api.c b/src/regex/test_regex_iterate_api.c index fa94c58ab..060288897 100644 --- a/src/regex/test_regex_iterate_api.c +++ b/src/regex/test_regex_iterate_api.c @@ -26,6 +26,7 @@ #include #include "platform.h" #include "regex_internal_lib.h" +#include "regex_block_lib.h" #include "regex_internal.h" /** @@ -59,7 +60,8 @@ struct RegexStringPair static void -key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof, +key_iterator (void *cls, const struct GNUNET_HashCode *key, + const char *proof, int accepting, unsigned int num_edges, const struct REGEX_BLOCK_Edge *edges) { @@ -101,7 +103,7 @@ key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof, ctx->match_count++; } - if (GNUNET_OK != REGEX_INTERNAL_check_proof (proof, key)) + if (GNUNET_OK != REGEX_INTERNAL_check_proof (proof, strlen (proof), key)) { ctx->error++; GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -- cgit v1.2.3