source: libabac/libabac_common.h @ 63dcd99

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

1) tested out python and perl test scripts along with

abac_chunk_t calls in libabac's abac.hh

  • Property mode set to 100644
File size: 857 bytes
Line 
1#ifndef __LIBABAC_COMMON_H__
2#define __LIBABAC_COMMON_H__
3
4#include "abac.h"
5#include "abac_list.h"
6
7void libabac_init();
8
9/* helper functions */
10
11// generate a random serial (8byte)
12unsigned char *abac_generate_serial();
13
14// returns true if a name starts with a letter and
15//  is otherwise alphanumeric
16int abac_clean_name(char *string);
17
18// return a PEM blob of the ID cert
19abac_chunk_t abac_id_in_PEM(abac_id_t *id);
20
21// return a PEM blob of the ID/PKEY
22int abac_id_PEM(abac_id_t *id, abac_chunk_t *);
23
24// return a blob of the Attribute cert
25abac_chunk_t abac_attribute_cert(abac_attribute_t *ptr);
26
27// used by creddy
28char *abac_attribute_role_string(abac_attribute_t *attr);
29
30// called by abac_verifier
31int init_xmlsec();
32int deinit_xmlsec();
33
34// called by abac_verifier
35int init_openssl();
36int deinit_openssl();
37
38
39#endif /* __LIBABAC_COMMON_H__ */
40
Note: See TracBrowser for help on using the repository browser.