source: creddy/libcreddy_common.h @ 8f58012

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since 8f58012 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
Line 
1#ifndef __LIBCREDDY_COMMON_H__
2#define __LIBCREDDY_COMMON_H__
3
4#include <credentials/certificates/certificate.h>
5#include <credentials/certificates/x509.h>
6#include <credentials/keys/private_key.h>
7
8#include <creddy.h>
9
10void *creddy_xmalloc(size_t len);
11void *creddy_xrealloc(void *ptr, size_t size);
12char *creddy_xstrdup(char *string);
13int creddy_clean_name(char *string);
14chunk_t creddy_generate_serial();
15
16// from libabac
17void libabac_init();
18
19//
20// Private API
21//
22
23// get the cert from the ID
24certificate_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
28private_key_t *creddy_id_privkey(creddy_id_t *id);
29
30#endif /* __ID_H__ */
Note: See TracBrowser for help on using the repository browser.