aboutsummaryrefslogtreecommitdiff
path: root/src/regex/test_regex_iterate_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-26 12:16:12 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-26 12:16:12 +0000
commit248fc3245a98731cf6fbb1bf460cd4e2e2d56de8 (patch)
treec0606c24a1c74d5f507d267b03d267a5cfaf4009 /src/regex/test_regex_iterate_api.c
parentc0101989bb0864a3688f57370e712c91c14ab1cd (diff)
downloadgnunet-248fc3245a98731cf6fbb1bf460cd4e2e2d56de8.tar.gz
gnunet-248fc3245a98731cf6fbb1bf460cd4e2e2d56de8.zip
-moving REGEX_INTERNAL_check_proof to libgnunetregexblock, integrating proof check into block plugin
Diffstat (limited to 'src/regex/test_regex_iterate_api.c')
-rw-r--r--src/regex/test_regex_iterate_api.c6
1 files changed, 4 insertions, 2 deletions
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 @@
26#include <time.h> 26#include <time.h>
27#include "platform.h" 27#include "platform.h"
28#include "regex_internal_lib.h" 28#include "regex_internal_lib.h"
29#include "regex_block_lib.h"
29#include "regex_internal.h" 30#include "regex_internal.h"
30 31
31/** 32/**
@@ -59,7 +60,8 @@ struct RegexStringPair
59 60
60 61
61static void 62static void
62key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof, 63key_iterator (void *cls, const struct GNUNET_HashCode *key,
64 const char *proof,
63 int accepting, unsigned int num_edges, 65 int accepting, unsigned int num_edges,
64 const struct REGEX_BLOCK_Edge *edges) 66 const struct REGEX_BLOCK_Edge *edges)
65{ 67{
@@ -101,7 +103,7 @@ key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof,
101 ctx->match_count++; 103 ctx->match_count++;
102 } 104 }
103 105
104 if (GNUNET_OK != REGEX_INTERNAL_check_proof (proof, key)) 106 if (GNUNET_OK != REGEX_INTERNAL_check_proof (proof, strlen (proof), key))
105 { 107 {
106 ctx->error++; 108 ctx->error++;
107 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 109 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,