mei_rt2
Last change
on this file since accd63d 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:
905 bytes
|
Rev | Line | |
---|
[2e9455f] | 1 | #ifndef __ABAC_UTIL_H__ |
---|
| 2 | #define __ABAC_UTIL_H__ |
---|
[7f25a67f] | 3 | |
---|
| 4 | #include <sys/types.h> |
---|
| 5 | |
---|
[8bd77b5] | 6 | #include <chunk.h> |
---|
| 7 | |
---|
[2e9455f] | 8 | #ifndef ABAC_VERSION |
---|
| 9 | #define ABAC_VERSION "0.2.4" |
---|
| 10 | #endif |
---|
[7f25a67f] | 11 | |
---|
[dbbf777] | 12 | #ifdef DEBUG |
---|
[2e9455f] | 13 | #define DEBUG_PRINTF(...) {if(debug) fprintf(stderr, __VA_ARGS__); } |
---|
[dbbf777] | 14 | #else |
---|
[2e9455f] | 15 | #define DEBUG_PRINTF(...) {/*no op*/} |
---|
[dbbf777] | 16 | #endif |
---|
| 17 | |
---|
[2e9455f] | 18 | /* exported from abac_util */ |
---|
| 19 | extern char *abac_version(); |
---|
| 20 | extern char *prologIt(char *); |
---|
| 21 | extern void *abac_xmalloc(size_t); |
---|
| 22 | extern void *abac_xrealloc(void*,size_t); |
---|
| 23 | extern char *abac_xstrdup(char*); |
---|
| 24 | extern char *abac_trim_quotes(char*); |
---|
| 25 | extern void abac_split(char*, char*, char**, int*); |
---|
| 26 | extern int abac_validate_clean_name(char*); |
---|
| 27 | extern int abac_validate_clean_aspect_name(char*); |
---|
| 28 | extern chunk_t abac_generate_serial(); |
---|
| 29 | extern void abac_clean_string(char *); |
---|
| 30 | |
---|
| 31 | extern int file_exist(char*); |
---|
| 32 | extern chunk_t extract_potato(char*, char*); |
---|
| 33 | extern void abac_errx(int eval, const char *msg); |
---|
| 34 | |
---|
| 35 | #endif /* __ABAC_UTIL_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.