1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #ifndef KEYFILE_H
30 #define KEYFILE_H
31
32 #include "conf.h"
33 #include "../daemon/keyfile_auth.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 typedef struct _keyfile_conf {
40 ConfigParser parser;
41 char *file;
42 UcxList *users;
43 } KeyfileConfig;
44
45 typedef struct _keyfile_entry {
46 sstr_t name;
47 enum KeyfileHashType hashtype;
48 sstr_t hashdata;
49 sstr_t *groups;
50 size_t numgroups;
51 } KeyfileEntry;
52
53 KeyfileConfig *load_keyfile_config(
char *file);
54 void free_keyfile_config(KeyfileConfig *conf);
55 int keyfile_parse(
void *p, ConfigLine *begin, ConfigLine *end,
sstr_t line);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif
62
63