source: libabac/abac_util.h @ 63dcd99

abac0-leak
Last change on this file since 63dcd99 was 461541a, checked in by Mei <mei@…>, 11 years ago

1) updated original rt0 to remove libstrongswan dependency

a) identity credential being made/accessed with openssl api calls

(X509/EVP_PKEY pem)

b) attribute credential being made/access via xmlsec1 (custom XML

structure)

2) refactored libcreddy into libabac and now one ABAC namespace for

libabac

3) added attribute_rule suboption to creddy's attribute as another way

to insert access rule

4) added some regression tests into example directory
5) updated some docs.

  • Property mode set to 100644
File size: 392 bytes
Line 
1#ifndef __UTIL_H__
2#define __UTTL_H__
3
4#include <sys/types.h>
5#include <stdlib.h>
6
7void *abac_xmalloc(size_t);
8char *abac_xstrdup(char *);
9void *abac_xrealloc(void *, size_t);
10void abac_split(char *string, char *delim, char **ret, int *num);
11
12#ifdef DEBUG
13#define debug_printf(...) fprintf(stderr, __VA_ARGS__)
14#else
15#define debug_printf(...) do { } while (0)
16#endif
17
18#endif /* __UTIL_H__ */
Note: See TracBrowser for help on using the repository browser.