OpenDNSSEC-enforcer
1.4.6
|
#include <stdio.h>
#include <getopt.h>
#include <string.h>
#include <syslog.h>
#include "config.h"
#include "kaspcheck.h"
#include "kc_helper.h"
#include "ksm/database.h"
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/relaxng.h>
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE |
#define | StrFree(ptr) {if(ptr != NULL) {free(ptr); (ptr) = NULL;}} |
Functions | |
void | usage () |
int | main (int argc, char *argv[]) |
int | check_conf (char **kasp) |
int | check_kasp () |
Variables | |
const char * | progname = NULL |
char * | config = (char *) OPENDNSSEC_CONFIG_FILE |
char * | kasp = NULL |
int | verbose = 0 |
char ** | repo_list = NULL |
int | repo_count = 0 |
#define _GNU_SOURCE |
Definition at line 26 of file kaspcheck.c.
#define StrFree | ( | ptr | ) | {if(ptr != NULL) {free(ptr); (ptr) = NULL;}} |
Definition at line 53 of file kaspcheck.c.
Referenced by check_conf(), and main().
int check_conf | ( | char ** | kasp | ) |
Definition at line 156 of file kaspcheck.c.
References check_file(), check_file_from_xpath(), check_path(), check_path_from_xpath(), check_rng(), check_time_def_from_xpath(), check_user_group(), config, dual_log(), KC_REPO::name, repo_count, repo_list, StrAppend(), StrFree, StrStrdup(), and KC_REPO::TokenLabel.
Referenced by main().
int check_kasp | ( | ) |
Definition at line 398 of file kaspcheck.c.
References check_policy(), check_rng(), dual_log(), kasp, repo_count, and repo_list.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 75 of file kaspcheck.c.
References check_conf(), check_kasp(), config, DEFAULT_LOG_FACILITY, dual_log(), kasp, log_init(), optarg, progname, repo_count, repo_list, StrFree, StrStrdup(), usage(), and verbose.
void usage | ( | ) |
char* config = (char *) OPENDNSSEC_CONFIG_FILE |
Definition at line 47 of file kaspcheck.c.
Referenced by check_conf(), and main().
char* kasp = NULL |
Definition at line 48 of file kaspcheck.c.
Referenced by check_kasp(), and main().
const char* progname = NULL |
Definition at line 45 of file kaspcheck.c.
int repo_count = 0 |
Definition at line 51 of file kaspcheck.c.
Referenced by check_conf(), check_kasp(), check_policy(), and main().
char** repo_list = NULL |
Definition at line 50 of file kaspcheck.c.
Referenced by check_conf(), check_kasp(), and main().
int verbose = 0 |
Definition at line 49 of file kaspcheck.c.
Referenced by check_rng(), and main().