source: creddy/creddy.h @ abd7c25

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since abd7c25 was abd7c25, checked in by Mike Ryan <mikeryan@…>, 14 years ago

basic credential management, generates X509 certs

  • Property mode set to 100644
File size: 575 bytes
Line 
1#ifndef __CREDDY_H__
2#define __CREDDY_H__
3
4typedef struct _options_t {
5    int help;
6    int mode;
7
8    // generate options
9    char *cn;
10    int validity;
11} options_t;
12
13#define MODE_GENERATE   1
14#define MODE_VERIFY     2
15#define MODE_KEYID      3
16#define MODE_ATTRIBUTE  4
17#define MODE_ROLES      5
18
19// returns true if a name starts with a letter and is otherwise alphanumeric
20int clean_name(char *string);
21
22void usage(options_t *opts);
23void *xmalloc(size_t len);
24char *xstrdup(char *string);
25
26// sub programs
27void generate_main(options_t *opts);
28
29#endif /* __CREDDY_H__ */
Note: See TracBrowser for help on using the repository browser.