mei_rt2mei_rt2_fix_1
Last change
on this file since 8bd77b5 was
8bd77b5,
checked in by Mei <mei@…>, 12 years ago
|
1) convert parser and libabac to use id cred and attr cred like
creddy (move those 2 files to libabac).
2) fix up abac.hh to work with expanded libabac. can now build
structure from python script
3) redid the credential dump using the internal credential table
instead of depending on a search in db.
|
-
Property mode set to
100644
|
File size:
739 bytes
|
Rev | Line | |
---|
[7f25a67f] | 1 | #ifndef __UTIL_H__ |
---|
| 2 | #define __UTTL_H__ |
---|
| 3 | |
---|
| 4 | #include <sys/types.h> |
---|
| 5 | |
---|
[8bd77b5] | 6 | #include <credentials/certificates/certificate.h> |
---|
| 7 | #include <credentials/certificates/x509.h> |
---|
| 8 | #include <credentials/keys/private_key.h> |
---|
| 9 | |
---|
| 10 | #include <chunk.h> |
---|
| 11 | |
---|
| 12 | void *abac_xmalloc(size_t size); |
---|
| 13 | void *abac_xrealloc(void *ptr, size_t size); |
---|
| 14 | char *abac_xstrdup(char *source); |
---|
| 15 | char *abac_trim_quotes(char *string); |
---|
[9a411d7] | 16 | void abac_split(char *string, char *delim, char **ret, int *num); |
---|
[8bd77b5] | 17 | int abac_validate_clean_name(char *string); |
---|
| 18 | int abac_validate_clean_aspect_name(char *string); |
---|
| 19 | chunk_t abac_generate_serial(); |
---|
| 20 | void abac_errx(int,char*); |
---|
[7f25a67f] | 21 | |
---|
[dbbf777] | 22 | #ifdef DEBUG |
---|
| 23 | #define debug_printf(...) fprintf(stderr, __VA_ARGS__) |
---|
| 24 | #else |
---|
| 25 | #define debug_printf(...) do { } while (0) |
---|
| 26 | #endif |
---|
| 27 | |
---|
[7f25a67f] | 28 | #endif /* __UTIL_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.