source: libabac/abac_pl_yap.h @ d0efdec

mei_rt2
Last change on this file since d0efdec was 2e9455f, checked in by Mei <mei@…>, 11 years ago

1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule

  • Property mode set to 100644
File size: 819 bytes
Line 
1#ifndef __ABAC_PL_YAP_H__
2#define __ABAC_PL_YAP_H__
3
4#include "abac_internal.h"
5#include "abac_stack.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
12/* export */
13extern abac_pl_t *abac_pl_new(abac_context_t *);
14extern abac_stack_t *abac_pl_query_with_structure(abac_pl_t *pl, abac_aspect_t *head_aspect, abac_aspect_t *tail_aspect);
15extern abac_stack_t *abac_pl_query_again(abac_pl_t *);
16extern abac_stack_t *abac_pl_query(abac_pl_t *, char *, char *);
17extern char *abac_pl_add_range_constraint_clause(char *var, char *tmplist);
18extern int abac_pl_remove_credential(abac_list_t *clauses);
19extern void abac_pl_init();
20
21#endif /* __ABAC_PL_YAP_H__ */
Note: See TracBrowser for help on using the repository browser.