source: libabac/abac_util.h @ e97d2e2

mei_rt2_fix_1
Last change on this file since e97d2e2 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
14void *abac_xmalloc(size_t size);
15void *abac_xrealloc(void *ptr, size_t size);
16char *abac_xstrdup(char *source);
17char *abac_trim_quotes(char *string);
18void abac_split(char *string, char *delim, char **ret, int *num);
19int abac_validate_clean_name(char *string);
20int abac_validate_clean_aspect_name(char *string);
21chunk_t abac_generate_serial();
22void abac_clean_string(char *);
23
24int file_exist(char *filename);
25chunk_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.