From e80c1a7ae27456d546e202b1c498e9337d42ce14 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Fri, 15 Nov 2019 16:40:34 +0100 Subject: Use afb_token in contexts Tokens are now object used in the context. Bug-AGL: SPEC-2968 Change-Id: I107d31732202b7b1172afaf09f3a52470f050d7c Signed-off-by: Jose Bollo --- src/afb-cred.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/afb-cred.h') diff --git a/src/afb-cred.h b/src/afb-cred.h index 1ebdf15d..82d0aacb 100644 --- a/src/afb-cred.h +++ b/src/afb-cred.h @@ -19,6 +19,8 @@ #include +struct afb_context; + struct afb_cred { int refcount; @@ -37,10 +39,10 @@ extern struct afb_cred *afb_cred_create_for_socket(int fd); extern struct afb_cred *afb_cred_addref(struct afb_cred *cred); extern void afb_cred_unref(struct afb_cred *cred); -extern int afb_cred_has_permission(struct afb_cred *cred, const char *permission, const char *context); +extern int afb_cred_has_permission(struct afb_cred *cred, const char *permission, struct afb_context *context); extern const char *afb_cred_export(struct afb_cred *cred); extern struct afb_cred *afb_cred_import(const char *string); -extern struct afb_cred *afb_cred_mixed_on_behalf_import(struct afb_cred *cred, const char *context, const char *exported); +extern struct afb_cred *afb_cred_mixed_on_behalf_import(struct afb_cred *cred, struct afb_context *context, const char *exported); -- cgit 1.2.3-korg