aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-26 23:39:29 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-26 23:39:29 +0100
commit82242cae3bb6313ee10df20570e4c14627828033 (patch)
treec628b5323c1ec8cbf0915e04bb7a1fa7864d7ea9 /src/regex
parentcc8f37a834298d95c233769d19eb9cd17e3dbcfd (diff)
downloadgnunet-82242cae3bb6313ee10df20570e4c14627828033.tar.gz
gnunet-82242cae3bb6313ee10df20570e4c14627828033.zip
add validation for inner consensus element
The nested block validation requires the block context, and thus the evaluate callback not also receives the block context.
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/plugin_block_regex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regex/plugin_block_regex.c b/src/regex/plugin_block_regex.c
index a345dfedb..0b3ef703e 100644
--- a/src/regex/plugin_block_regex.c
+++ b/src/regex/plugin_block_regex.c
@@ -269,6 +269,7 @@ evaluate_block_regex_accept (void *cls,
269 * be done with the #GNUNET_BLOCK_get_key() function. 269 * be done with the #GNUNET_BLOCK_get_key() function.
270 * 270 *
271 * @param cls closure 271 * @param cls closure
272 * @param ctx block context
272 * @param type block type 273 * @param type block type
273 * @param bg group to evaluate against 274 * @param bg group to evaluate against
274 * @param eo control flags 275 * @param eo control flags
@@ -281,6 +282,7 @@ evaluate_block_regex_accept (void *cls,
281 */ 282 */
282static enum GNUNET_BLOCK_EvaluationResult 283static enum GNUNET_BLOCK_EvaluationResult
283block_plugin_regex_evaluate (void *cls, 284block_plugin_regex_evaluate (void *cls,
285 struct GNUNET_BLOCK_Context *ctx,
284 enum GNUNET_BLOCK_Type type, 286 enum GNUNET_BLOCK_Type type,
285 struct GNUNET_BLOCK_Group *bg, 287 struct GNUNET_BLOCK_Group *bg,
286 enum GNUNET_BLOCK_EvaluationOptions eo, 288 enum GNUNET_BLOCK_EvaluationOptions eo,