#ifndef KEYFILE_H
#define KEYFILE_H
#include "conf.h"
#include "../daemon/keyfile_auth.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _keyfile_conf {
ConfigParser parser;
char *file;
UcxList *users;
} KeyfileConfig;
typedef struct _keyfile_entry {
sstr_t name;
enum KeyfileHashType hashtype;
sstr_t hashdata;
sstr_t *groups;
size_t numgroups;
} KeyfileEntry;
KeyfileConfig *load_keyfile_config(
char *file);
void free_keyfile_config(KeyfileConfig *conf);
int keyfile_parse(
void *p, ConfigLine *begin, ConfigLine *end,
sstr_t line);
#ifdef __cplusplus
}
#endif
#endif