mei_rt2mei_rt2_fix_1
Last change
on this file since 9248b00 was
d9c3886,
checked in by Mei <mei@…>, 12 years ago
|
1) add 2 more query calls in abac.hh that take Role and Oset instead of
strings. Add supporting code in libabac that will take abac_aspect_t
and make query term directly instead of doing stringify the structure
and do string->yyparse->abac_aspect_t again.
2) start on inline doc into abac.hh
3) tweaked some scripts in examples directory
|
-
Property mode set to
100644
|
File size:
927 bytes
|
Rev | Line | |
---|
[e95d652] | 1 | #ifndef __PL_YAP_H__ |
---|
| 2 | #define __PL_YAP_H__ |
---|
| 3 | |
---|
[8bd77b5] | 4 | #include "abac_internal.h" |
---|
[e95d652] | 5 | #include "abac_verifier.h" |
---|
| 6 | |
---|
| 7 | #define ABAC_PL_CRED_OK 0 // adding a credential succeeded |
---|
| 8 | #define ABAC_PL_CRED_INVALID -1 // the credential was invalid |
---|
| 9 | #define ABAC_PL_CRED_DUP -2 // the credential is already present |
---|
| 10 | |
---|
| 11 | typedef struct _abac_pl_t abac_pl_t; |
---|
| 12 | |
---|
| 13 | abac_pl_t *abac_pl_new(void); |
---|
| 14 | |
---|
| 15 | int abac_pl_add_credential(abac_pl_t *pl, abac_credential_t *cred); |
---|
| 16 | abac_pl_t *abac_pl_dup(abac_pl_t *pl); |
---|
| 17 | /* return a list of credentials */ |
---|
[202a7f9] | 18 | abac_stack_t *abac_pl_query(abac_pl_t *pl, char *role, char *principal); |
---|
[d9c3886] | 19 | abac_stack_t *abac_pl_query_with_structure(abac_pl_t *pl, abac_aspect_t *head_aspect, abac_aspect_t *tail_aspect); |
---|
[e95d652] | 20 | |
---|
| 21 | /* return a list of all credentials in the pl file */ |
---|
[202a7f9] | 22 | abac_stack_t *abac_pl_credentials(abac_pl_t *pl); |
---|
[5110d42] | 23 | abac_stack_t *abac_pl_principals(abac_pl_t *pl); |
---|
[e95d652] | 24 | |
---|
| 25 | void abac_pl_free(abac_pl_t *pl); |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | #endif /* __PL_YAP_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.