source:
libabac/abac_pl_yap.h
@
53e540d
Last change on this file since 53e540d was e95d652, checked in by , 13 years ago | |
---|---|
|
|
File size: 775 bytes |
Line | |
---|---|
1 | #ifndef __PL_YAP_H__ |
2 | #define __PL_YAP_H__ |
3 | |
4 | #include "abac.h" |
5 | #include "abac_list.h" |
6 | #include "abac_verifier.h" |
7 | |
8 | #define ABAC_PL_CRED_OK 0 // adding a credential succeeded |
9 | #define ABAC_PL_CRED_INVALID -1 // the credential was invalid |
10 | #define ABAC_PL_CRED_DUP -2 // the credential is already present |
11 | |
12 | typedef struct _abac_pl_t abac_pl_t; |
13 | |
14 | abac_pl_t *abac_pl_new(void); |
15 | |
16 | int abac_pl_add_credential(abac_pl_t *pl, abac_credential_t *cred); |
17 | abac_pl_t *abac_pl_dup(abac_pl_t *pl); |
18 | /* return a list of credentials */ |
19 | abac_list_t *abac_pl_query(abac_pl_t *pl, char *role, char *principal); |
20 | |
21 | /* return a list of all credentials in the pl file */ |
22 | abac_list_t *abac_pl_credentials(abac_pl_t *pl); |
23 | |
24 | void abac_pl_free(abac_pl_t *pl); |
25 | |
26 | |
27 | #endif /* __PL_YAP_H__ */ |
Note: See TracBrowser
for help on using the repository browser.