abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change
on this file since 8231b92 was
11e3eb7,
checked in by Mike Ryan <mikeryan@…>, 14 years ago
|
return binary representations of ID and attr certs in abac_chunk_t
suitable for passing off to libabac
supported in perl and python natively
closes #9
|
-
Property mode set to
100644
|
File size:
701 bytes
|
Rev | Line | |
---|
[3a33812] | 1 | #ifndef __LIBCREDDY_COMMON_H__ |
---|
| 2 | #define __LIBCREDDY_COMMON_H__ |
---|
[002b25a] | 3 | |
---|
| 4 | #include <credentials/certificates/certificate.h> |
---|
| 5 | #include <credentials/certificates/x509.h> |
---|
| 6 | #include <credentials/keys/private_key.h> |
---|
| 7 | |
---|
[04f5da1] | 8 | #include <creddy.h> |
---|
[002b25a] | 9 | |
---|
[3a33812] | 10 | void *creddy_xmalloc(size_t len); |
---|
| 11 | void *creddy_xrealloc(void *ptr, size_t size); |
---|
| 12 | char *creddy_xstrdup(char *string); |
---|
| 13 | int creddy_clean_name(char *string); |
---|
| 14 | chunk_t creddy_generate_serial(); |
---|
[11e3eb7] | 15 | |
---|
| 16 | // from libabac |
---|
| 17 | void libabac_init(); |
---|
[3a33812] | 18 | |
---|
[002b25a] | 19 | // |
---|
| 20 | // Private API |
---|
| 21 | // |
---|
| 22 | |
---|
| 23 | // get the cert from the ID |
---|
| 24 | certificate_t *creddy_id_cert(creddy_id_t *id); |
---|
| 25 | |
---|
| 26 | // get the private key from the ID |
---|
| 27 | // will return NULL if no key has been loaded |
---|
| 28 | private_key_t *creddy_id_privkey(creddy_id_t *id); |
---|
| 29 | |
---|
| 30 | #endif /* __ID_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.