source: creddy/libcreddy_common.h @ 1f6becb

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since 1f6becb 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
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();
15void creddy_init(void);
16
17//
18// Private API
19//
20
21// get the cert from the ID
22certificate_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
26private_key_t *creddy_id_privkey(creddy_id_t *id);
27
28#endif /* __ID_H__ */
Note: See TracBrowser for help on using the repository browser.