abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change
on this file since 9d767d1 was
9d767d1,
checked in by Mike Ryan <mikeryan@…>, 14 years ago
|
init libstrongswan inside the library
|
-
Property mode set to
100644
|
File size:
687 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(); |
---|
[9d767d1] | 15 | void creddy_init(void); |
---|
[3a33812] | 16 | |
---|
[002b25a] | 17 | // |
---|
| 18 | // Private API |
---|
| 19 | // |
---|
| 20 | |
---|
| 21 | // get the cert from the ID |
---|
| 22 | certificate_t *creddy_id_cert(creddy_id_t *id); |
---|
| 23 | |
---|
| 24 | // get the private key from the ID |
---|
| 25 | // will return NULL if no key has been loaded |
---|
| 26 | private_key_t *creddy_id_privkey(creddy_id_t *id); |
---|
| 27 | |
---|
| 28 | #endif /* __ID_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.