diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-26 23:39:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-26 23:39:29 +0100 |
commit | 82242cae3bb6313ee10df20570e4c14627828033 (patch) | |
tree | c628b5323c1ec8cbf0915e04bb7a1fa7864d7ea9 /src/dns | |
parent | cc8f37a834298d95c233769d19eb9cd17e3dbcfd (diff) | |
download | gnunet-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/dns')
-rw-r--r-- | src/dns/plugin_block_dns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dns/plugin_block_dns.c b/src/dns/plugin_block_dns.c index fe416e450..ca6ea84c4 100644 --- a/src/dns/plugin_block_dns.c +++ b/src/dns/plugin_block_dns.c | |||
@@ -93,6 +93,7 @@ block_plugin_dns_create_group (void *cls, | |||
93 | * request evaluation, simply pass "NULL" for the reply_block. | 93 | * request evaluation, simply pass "NULL" for the reply_block. |
94 | * | 94 | * |
95 | * @param cls closure | 95 | * @param cls closure |
96 | * @param ctx block context | ||
96 | * @param type block type | 97 | * @param type block type |
97 | * @param bg group to evaluate against | 98 | * @param bg group to evaluate against |
98 | * @param eo control flags | 99 | * @param eo control flags |
@@ -105,6 +106,7 @@ block_plugin_dns_create_group (void *cls, | |||
105 | */ | 106 | */ |
106 | static enum GNUNET_BLOCK_EvaluationResult | 107 | static enum GNUNET_BLOCK_EvaluationResult |
107 | block_plugin_dns_evaluate (void *cls, | 108 | block_plugin_dns_evaluate (void *cls, |
109 | struct GNUNET_BLOCK_Context *ctx, | ||
108 | enum GNUNET_BLOCK_Type type, | 110 | enum GNUNET_BLOCK_Type type, |
109 | struct GNUNET_BLOCK_Group *bg, | 111 | struct GNUNET_BLOCK_Group *bg, |
110 | enum GNUNET_BLOCK_EvaluationOptions eo, | 112 | enum GNUNET_BLOCK_EvaluationOptions eo, |