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