mei_rt2mei_rt2_fix_1
Last change
on this file since 9248b00 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
|
Line | |
---|
1 | #ifndef __UTIL_H__ |
---|
2 | #define __UTTL_H__ |
---|
3 | |
---|
4 | #include <sys/types.h> |
---|
5 | |
---|
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 | #define PWLEN 128 |
---|
13 | |
---|
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); |
---|
18 | void abac_split(char *string, char *delim, char **ret, int *num); |
---|
19 | int abac_validate_clean_name(char *string); |
---|
20 | int abac_validate_clean_aspect_name(char *string); |
---|
21 | chunk_t abac_generate_serial(); |
---|
22 | void abac_clean_string(char *); |
---|
23 | |
---|
24 | int file_exist(char *filename); |
---|
25 | chunk_t extract_potato(char *filename, char *pfile); |
---|
26 | |
---|
27 | #ifdef DEBUG |
---|
28 | #define debug_printf(...) fprintf(stderr, __VA_ARGS__) |
---|
29 | #else |
---|
30 | #define debug_printf(...) do { } while (0) |
---|
31 | #endif |
---|
32 | |
---|
33 | #endif /* __UTIL_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.