aboutsummaryrefslogtreecommitdiff
path: root/src/dns
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/dns
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/dns')
-rw-r--r--src/dns/plugin_block_dns.c2
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 */
106static enum GNUNET_BLOCK_EvaluationResult 107static enum GNUNET_BLOCK_EvaluationResult
107block_plugin_dns_evaluate (void *cls, 108block_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,