diff options
Diffstat (limited to 'src/authorization/anastasis_authorization_plugin_post.c')
-rw-r--r-- | src/authorization/anastasis_authorization_plugin_post.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/authorization/anastasis_authorization_plugin_post.c b/src/authorization/anastasis_authorization_plugin_post.c index bca4451..dddd273 100644 --- a/src/authorization/anastasis_authorization_plugin_post.c +++ b/src/authorization/anastasis_authorization_plugin_post.c @@ -42,6 +42,12 @@ struct PostContext * Messages of the plugin, read from a resource file. */ json_t *messages; + + /** + * Argument passed to the "init" function of each + * plugin. + */ + const struct ANASTASIS_AuthorizationContext *ac; }; @@ -576,11 +582,13 @@ post_cleanup (struct ANASTASIS_AUTHORIZATION_State *as) void * libanastasis_plugin_authorization_post_init (void *cls) { + const struct ANASTASIS_AuthorizationContext *ac = cls; struct ANASTASIS_AuthorizationPlugin *plugin; - struct GNUNET_CONFIGURATION_Handle *cfg = cls; + const struct GNUNET_CONFIGURATION_Handle *cfg = ac->cfg; struct PostContext *ctx; ctx = GNUNET_new (struct PostContext); + ctx->ac = ac; { char *fn; json_error_t err; |