source: libabac/abac_term.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: 1.4 KB
Line 
1#ifndef __ABAC_TERM_H__
2#define __ABAC_TERM_H__
3
4#include "abac_defines.h"
5#include "abac_list.h"
6
7/* exported */
8/* for abac_aspect */
9extern char *abac_term_type_name(abac_term_t*);
10extern abac_condition_t *abac_term_constraint(abac_term_t*);
11extern abac_param_list_t *abac_param_list_new(abac_term_t *);
12extern char* abac_time_to_term(char*);
13extern char* abac_param_list_string_with_condition(abac_param_list_t *);
14extern char* abac_param_list_typed_string_with_condition(abac_param_list_t *);
15extern char* abac_param_list_string(abac_param_list_t *ptr);
16extern abac_list_t *abac_condition_range_list(abac_condition_t *ptr);
17extern int abac_item_type(abac_item_t *);
18extern char *abac_item_val(abac_item_t *);
19extern char *abac_term_to_time(char *);
20extern abac_aspect_t *abac_condition_of_aspect(abac_condition_t *ptr);
21extern abac_list_t *abac_param_list(abac_param_list_t *ptr);
22extern abac_term_t *abac_term_named_new(int idtype, char *name);
23extern char *abac_term_name(abac_term_t *term);
24extern abac_term_t *abac_term_new(int type, char *name, int isrange, char *cond, void *cptr);
25extern abac_aspect_t *abac_aspect_oset_new(char *principal_name, char *oset_name);
26extern abac_aspect_t *abac_aspect_role_new(char *principal_name, char *oset_name);
27extern abac_item_t *abac_item_new(int itype, char *val);
28
29extern abac_term_t *abac_term_copy(abac_term_t *);
30extern abac_param_list_t *abac_param_list_copy(abac_param_list_t *);
31
32
33#endif /* __ABAC_TERM_H__ */
Note: See TracBrowser for help on using the repository browser.