047f369a62
Reviewed by: roberto Security: VUXML: 4033d826-87dd-11e4-9079-3c970e169bc2 Security: http://www.kb.cert.org/vuls/id/852879 Security: CVE-2014-9293 Security CVE-2014-9294 Security CVE-2014-9295 Security CVE-2014-9296
21 lines
450 B
C
21 lines
450 B
C
#ifndef KOD_MANAGEMENT_H
|
|
#define KOD_MANAGEMENT_H
|
|
|
|
#include <time.h>
|
|
|
|
struct kod_entry {
|
|
char hostname[255];
|
|
time_t timestamp;
|
|
char type[5];
|
|
};
|
|
|
|
int search_entry(const char *hostname, struct kod_entry **dst);
|
|
void add_entry(const char *hostname, const char *type);
|
|
void delete_entry(const char *hostname, const char *type);
|
|
void kod_init_kod_db(const char *db_file, int readonly);
|
|
int write_kod_db(void);
|
|
void atexit_write_kod_db(void);
|
|
|
|
|
|
#endif
|