mei_rt2mei_rt2_fix_1
Last change
on this file since b9c9ebd was
ba6027a,
checked in by Mei <mei@…>, 12 years ago
|
1) modified code all around to add support for encrypted private key for
ID credential
2) add new abac_key_t structure (abac_key.c)
3) add new keycheck option to creddy
4) add 2 new test suites
|
-
Property mode set to
100644
|
File size:
849 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 | |
---|
[ba6027a] | 12 | #define PWLEN 128 |
---|
| 13 | |
---|
[8bd77b5] | 14 | void *abac_xmalloc(size_t size); |
---|
| 15 | void *abac_xrealloc(void *ptr, size_t size); |
---|
| 16 | char *abac_xstrdup(char *source); |
---|
| 17 | char *abac_trim_quotes(char *string); |
---|
[9a411d7] | 18 | void abac_split(char *string, char *delim, char **ret, int *num); |
---|
[8bd77b5] | 19 | int abac_validate_clean_name(char *string); |
---|
| 20 | int abac_validate_clean_aspect_name(char *string); |
---|
| 21 | chunk_t abac_generate_serial(); |
---|
[ba6027a] | 22 | void abac_clean_string(char *); |
---|
| 23 | |
---|
[2efdff5] | 24 | int file_exist(char *filename); |
---|
[ba6027a] | 25 | chunk_t extract_potato(char *filename, char *pfile); |
---|
[7f25a67f] | 26 | |
---|
[dbbf777] | 27 | #ifdef DEBUG |
---|
| 28 | #define debug_printf(...) fprintf(stderr, __VA_ARGS__) |
---|
| 29 | #else |
---|
| 30 | #define debug_printf(...) do { } while (0) |
---|
| 31 | #endif |
---|
| 32 | |
---|
[7f25a67f] | 33 | #endif /* __UTIL_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.