OpenDNSSEC-enforcer
1.4.5
|
#include <libxml/xpath.h>
Go to the source code of this file.
Macros | |
#define | DEFAULT_LOG_FACILITY LOG_USER |
#define | DEFAULT_LOG_FACILITY_STRING "LOG_USER" |
#define | KC_NAME_LENGTH 256 |
Functions | |
void | log_init (int facility, const char *program_name) |
void | log_switch (int facility, const char *program_name) |
void | dual_log (const char *format,...) |
int | check_rng (const char *filename, const char *rngfilename) |
int | check_file (const char *filename, const char *log_string) |
int | check_file_from_xpath (xmlXPathContextPtr xpath_ctx, const char *log_string, const xmlChar *file_xexpr) |
int | check_path (const char *pathname, const char *log_string) |
int | check_path_from_xpath (xmlXPathContextPtr xpath_ctx, const char *log_string, const xmlChar *path_xexpr) |
int | check_user_group (xmlXPathContextPtr xpath_ctx, const xmlChar *user_xexpr, const xmlChar *group_xexpr) |
int | check_time_def (const char *time_expr, const char *location, const char *field, const char *filename, int *interval) |
int | check_time_def_from_xpath (xmlXPathContextPtr xpath_ctx, const xmlChar *time_xexpr, const char *location, const char *field, const char *filename) |
int | check_policy (xmlNode *curNode, const char *policy_name, char **repo_list, int repo_count, const char *kasp) |
int | DtXMLIntervalSeconds (const char *text, int *interval) |
int | StrStrtoi (const char *string, int *value) |
int | StrStrtol (const char *string, long *value) |
char * | StrStrdup (const char *string) |
void | StrAppend (char **str1, const char *str2) |
void | StrTrimR (char *text) |
char * | StrTrimL (char *text) |
void * | MemCalloc (size_t nmemb, size_t size) |
void * | MemRealloc (void *ptr, size_t size) |
#define DEFAULT_LOG_FACILITY LOG_USER |
Definition at line 33 of file kc_helper.h.
#define DEFAULT_LOG_FACILITY_STRING "LOG_USER" |
Definition at line 34 of file kc_helper.h.
#define KC_NAME_LENGTH 256 |
Definition at line 39 of file kc_helper.h.
Referenced by check_policy().
int check_file | ( | const char * | filename, |
const char * | log_string | ||
) |
Definition at line 194 of file kc_helper.c.
References dual_log().
Referenced by check_conf(), check_file_from_xpath(), and check_rng().
int check_file_from_xpath | ( | xmlXPathContextPtr | xpath_ctx, |
const char * | log_string, | ||
const xmlChar * | file_xexpr | ||
) |
Definition at line 218 of file kc_helper.c.
References check_file(), dual_log(), and StrFree.
Referenced by check_conf().
int check_path | ( | const char * | pathname, |
const char * | log_string | ||
) |
Definition at line 251 of file kc_helper.c.
References dual_log().
Referenced by check_conf(), and check_path_from_xpath().
int check_path_from_xpath | ( | xmlXPathContextPtr | xpath_ctx, |
const char * | log_string, | ||
const xmlChar * | path_xexpr | ||
) |
Definition at line 274 of file kc_helper.c.
References check_path(), dual_log(), and StrFree.
Referenced by check_conf().
int check_policy | ( | xmlNode * | curNode, |
const char * | policy_name, | ||
char ** | repo_list, | ||
int | repo_count, | ||
const char * | kasp | ||
) |
Definition at line 410 of file kc_helper.c.
References check_time_def(), dual_log(), KC_NAME_LENGTH, repo_count, StrFree, and StrStrtoi().
Referenced by check_kasp().
int check_rng | ( | const char * | filename, |
const char * | rngfilename | ||
) |
Definition at line 92 of file kc_helper.c.
References check_file(), dual_log(), and verbose.
Referenced by check_conf(), and check_kasp().
int check_time_def | ( | const char * | time_expr, |
const char * | location, | ||
const char * | field, | ||
const char * | filename, | ||
int * | interval | ||
) |
Definition at line 350 of file kc_helper.c.
References DtXMLIntervalSeconds(), and dual_log().
Referenced by check_policy(), and check_time_def_from_xpath().
int check_time_def_from_xpath | ( | xmlXPathContextPtr | xpath_ctx, |
const xmlChar * | time_xexpr, | ||
const char * | location, | ||
const char * | field, | ||
const char * | filename | ||
) |
Definition at line 387 of file kc_helper.c.
References check_time_def(), dual_log(), and StrFree.
Referenced by check_conf().
int check_user_group | ( | xmlXPathContextPtr | xpath_ctx, |
const xmlChar * | user_xexpr, | ||
const xmlChar * | group_xexpr | ||
) |
Definition at line 300 of file kc_helper.c.
References dual_log(), and StrFree.
Referenced by check_conf().
int DtXMLIntervalSeconds | ( | const char * | text, |
int * | interval | ||
) |
Definition at line 925 of file datetime.c.
Referenced by check_time_def(), cmd_genkeys(), get_conf_key_info(), ReadConfig(), and SetParamOnPolicy().
void dual_log | ( | const char * | format, |
... | |||
) |
Definition at line 63 of file kc_helper.c.
Referenced by check_conf(), check_file(), check_file_from_xpath(), check_kasp(), check_path(), check_path_from_xpath(), check_policy(), check_rng(), check_time_def(), check_time_def_from_xpath(), check_user_group(), main(), MemCalloc(), MemRealloc(), StrStrdup(), StrStrtoi(), and StrStrtol().
void log_init | ( | int | facility, |
const char * | program_name | ||
) |
Definition at line 265 of file daemon_util.c.
Referenced by main().
void log_switch | ( | int | facility, |
const char * | program_name | ||
) |
Definition at line 56 of file kc_helper.c.
void* MemCalloc | ( | size_t | nmemb, |
size_t | size | ||
) |
Definition at line 68 of file memory.c.
References dual_log(), KSM_STMTALLOC, and MsgLog().
void* MemRealloc | ( | void * | ptr, |
size_t | size | ||
) |
Definition at line 79 of file memory.c.
References dual_log(), KSM_STMTALLOC, and MsgLog().
void StrAppend | ( | char ** | str1, |
const char * | str2 | ||
) |
Definition at line 76 of file string_util2.c.
References MemRealloc(), and StrStrdup().
char* StrStrdup | ( | const char * | string | ) |
Definition at line 124 of file string_util.c.
References dual_log(), KSM_STMTALLOC, MemCalloc(), and MsgLog().
int StrStrtoi | ( | const char * | string, |
int * | value | ||
) |
Definition at line 506 of file string_util2.c.
References dual_log(), KSM_INVARG, MsgLog(), and StrStrtol().
int StrStrtol | ( | const char * | string, |
long * | value | ||
) |
Definition at line 387 of file string_util2.c.
References dual_log(), KSM_INVARG, MsgLog(), StrFree, StrStrdup(), StrTrimL(), and StrTrimR().
char* StrTrimL | ( | char * | text | ) |
Definition at line 269 of file string_util.c.
void StrTrimR | ( | char * | text | ) |
Definition at line 228 of file string_util.c.