source: libabac/libabac_common.h @ 461541a

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 461541a was 461541a, checked in by Mei <mei@…>, 7 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: 757 bytes
Line 
1#ifndef __LIBABAC_COMMON_H__
2#define __LIBABAC_COMMON_H__
3
4#include "abac.h"
5
6void libabac_init();
7
8/* helper functions */
9
10// generate a random serial (8byte)
11unsigned char *abac_generate_serial();
12
13// returns true if a name starts with a letter and
14//  is otherwise alphanumeric
15int abac_clean_name(char *string);
16
17// return a PEM blob of the ID cert
18abac_chunk_t abac_id_in_PEM(abac_id_t *id);
19
20// return a PEM blob of the ID/PKEY
21int abac_id_PEM(abac_id_t *id, abac_chunk_t *);
22
23// return a blob of the Attribute cert
24abac_chunk_t abac_attribute_cert(abac_attribute_t *ptr);
25
26// called by abac_verifier
27int init_xmlsec();
28int deinit_xmlsec();
29
30// called by abac_verifier
31int init_openssl();
32int deinit_openssl();
33
34
35#endif /* __LIBABAC_COMMON_H__ */
36
Note: See TracBrowser for help on using the repository browser.