diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-27 15:28:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-27 15:28:00 +0100 |
commit | 830137e312e8e565c9113a20411aa3073fbd1cbd (patch) | |
tree | c5c85eb38dc28a353c087ce2058e4cd5c11534ea /src/block | |
parent | ee3327de8fd04b2b8ce8692560c9f1d01a822baa (diff) | |
download | gnunet-830137e312e8e565c9113a20411aa3073fbd1cbd.tar.gz gnunet-830137e312e8e565c9113a20411aa3073fbd1cbd.zip |
implement revocation block plugin, get revocation test to pass again
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/block.c | 2 | ||||
-rw-r--r-- | src/block/plugin_block_template.c | 4 |
2 files changed, 4 insertions, 2 deletions
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) | |||
136 | ctx = GNUNET_new (struct GNUNET_BLOCK_Context); | 136 | ctx = GNUNET_new (struct GNUNET_BLOCK_Context); |
137 | ctx->cfg = cfg; | 137 | ctx->cfg = cfg; |
138 | GNUNET_PLUGIN_load_all ("libgnunet_plugin_block_", | 138 | GNUNET_PLUGIN_load_all ("libgnunet_plugin_block_", |
139 | NULL, | 139 | (void *) cfg, |
140 | &add_plugin, | 140 | &add_plugin, |
141 | ctx); | 141 | ctx); |
142 | return ctx; | 142 | 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, | |||
157 | 157 | ||
158 | /** | 158 | /** |
159 | * Entry point for the plugin. | 159 | * Entry point for the plugin. |
160 | * | ||
161 | * @param cls a `const struct GNUNET_CONFIGURATION_Handle` | ||
160 | */ | 162 | */ |
161 | void * | 163 | void * |
162 | libgnunet_plugin_block_template_init (void *cls) | 164 | libgnunet_plugin_block_template_init (void *cls) |
@@ -183,7 +185,7 @@ libgnunet_plugin_block_template_init (void *cls) | |||
183 | void * | 185 | void * |
184 | libgnunet_plugin_block_template_done (void *cls) | 186 | libgnunet_plugin_block_template_done (void *cls) |
185 | { | 187 | { |
186 | struct GNUNET_TRANSPORT_PluginFunctions *api = cls; | 188 | struct GNUNET_BLOCK_PluginFunctions *api = cls; |
187 | 189 | ||
188 | GNUNET_free (api); | 190 | GNUNET_free (api); |
189 | return NULL; | 191 | return NULL; |