add nick name for cached records
[oweals/gnunet.git] / src / regex / test_regex_iterate_api.c
index 06028889761815d51b80169183563f1242aab659..a86295abf8199e61ba8ce59918552cf6848f4262 100644 (file)
@@ -60,7 +60,7 @@ struct RegexStringPair
 
 
 static void
-key_iterator (void *cls, const struct GNUNET_HashCode *key, 
+key_iterator (void *cls, const struct GNUNET_HashCode *key,
              const char *proof,
               int accepting, unsigned int num_edges,
               const struct REGEX_BLOCK_Edge *edges)
@@ -103,16 +103,16 @@ key_iterator (void *cls, const struct GNUNET_HashCode *key,
       ctx->match_count++;
   }
 
-  if (GNUNET_OK != REGEX_INTERNAL_check_proof (proof, strlen (proof), key))
+  if (GNUNET_OK != REGEX_BLOCK_check_proof (proof, strlen (proof), key))
   {
     ctx->error++;
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 "Proof check failed: proof: %s key: %s\n", proof, state_id);
   }
-
   GNUNET_free (state_id);
 }
 
+
 int
 main (int argc, char *argv[])
 {