abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change
on this file since 3131b19 was
002b25a,
checked in by Mike Ryan <mikeryan@…>, 14 years ago
|
first cut at creddy_id object, integrated into attribute
|
-
Property mode set to
100644
|
File size:
556 bytes
|
Rev | Line | |
---|
[002b25a] | 1 | #ifndef __LIBCREDDY_H__ |
---|
| 2 | #define __LIBCREDDY_H__ |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * Creddy identifiers. |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | typedef struct _creddy_id_t creddy_id_t; |
---|
| 9 | |
---|
| 10 | // create an ID from an X.509 certificate |
---|
| 11 | creddy_id_t *creddy_id_from_file(char *filename); |
---|
| 12 | |
---|
| 13 | // load an X.509 private key for an from a file |
---|
| 14 | // handles keys with a password |
---|
| 15 | int creddy_id_load_privkey(creddy_id_t *id, char *filename); |
---|
| 16 | |
---|
| 17 | // get the SHA1 keyid, pointer is valid for the lifetime of the object |
---|
| 18 | char *creddy_id_keyid(creddy_id_t *id); |
---|
| 19 | |
---|
| 20 | // destroy the id |
---|
| 21 | void creddy_id_free(creddy_id_t *id); |
---|
| 22 | |
---|
| 23 | #endif /* __LIBCREDDY_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.