diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-16 11:36:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-16 11:36:14 +0200 |
commit | b2d9f5936b7e867180199771c9e47c6d95ec8b8a (patch) | |
tree | cfda3db1cf0a6921f88d20925ed74f2cd427fcd6 /src/authorization/anastasis_authorization_plugin_post.c | |
parent | 7bed96f8e479af98db1a8a0c71b7c2ff2dc2b564 (diff) | |
download | anastasis-b2d9f5936b7e867180199771c9e47c6d95ec8b8a.tar.gz anastasis-b2d9f5936b7e867180199771c9e47c6d95ec8b8a.tar.bz2 anastasis-b2d9f5936b7e867180199771c9e47c6d95ec8b8a.zip |
-pass db handle to auth plugins
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; |