From 830137e312e8e565c9113a20411aa3073fbd1cbd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 27 Feb 2017 15:28:00 +0100 Subject: implement revocation block plugin, get revocation test to pass again --- src/block/block.c | 2 +- src/block/plugin_block_template.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/block') diff --git a/src/block/block.c b/src/block/block.c index d6e61acf6..4b6f3826d 100644 --- a/src/block/block.c +++ b/src/block/block.c @@ -136,7 +136,7 @@ GNUNET_BLOCK_context_create (const struct GNUNET_CONFIGURATION_Handle *cfg) ctx = GNUNET_new (struct GNUNET_BLOCK_Context); ctx->cfg = cfg; GNUNET_PLUGIN_load_all ("libgnunet_plugin_block_", - NULL, + (void *) cfg, &add_plugin, ctx); return ctx; diff --git a/src/block/plugin_block_template.c b/src/block/plugin_block_template.c index 2edca17ec..0105fac38 100644 --- a/src/block/plugin_block_template.c +++ b/src/block/plugin_block_template.c @@ -157,6 +157,8 @@ block_plugin_template_get_key (void *cls, /** * Entry point for the plugin. + * + * @param cls a `const struct GNUNET_CONFIGURATION_Handle` */ void * libgnunet_plugin_block_template_init (void *cls) @@ -183,7 +185,7 @@ libgnunet_plugin_block_template_init (void *cls) void * libgnunet_plugin_block_template_done (void *cls) { - struct GNUNET_TRANSPORT_PluginFunctions *api = cls; + struct GNUNET_BLOCK_PluginFunctions *api = cls; GNUNET_free (api); return NULL; -- cgit v1.2.3