OpenDNSSEC-signer 2.1.12
confparser.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 NLNet Labs. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
17 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
19 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
21 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
23 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 */
26
32#ifndef PARSER_CONFPARSER_H
33#define PARSER_CONFPARSER_H
34
35#include "config.h"
36#include "wire/listener.h"
37#include "hsm.h"
38#include "status.h"
39
40#define ADMAX 6 /* Maximum number of adapters that can be initialized */
41
49ods_status parse_file_check(const char* cfgfile, const char* rngfile);
50
59const char* parse_conf_string(const char* cfgfile, const char* expr,
60 int required);
61
68hsm_repository_t* parse_conf_repositories(const char* cfgfile);
69
77listener_type* parse_conf_listener(const char* cfgfile);
78
88const char* parse_conf_zonelist_filename(const char* cfgfile);
89const char* parse_conf_log_filename(const char* cfgfile);
90
92const char* parse_conf_pid_filename(const char* cfgfile);
93const char* parse_conf_notify_command(const char* cfgfile);
94const char* parse_conf_clisock_filename(const char* cfgfile);
95const char* parse_conf_working_dir(const char* cfgfile);
96const char* parse_conf_username(const char* cfgfile);
97const char* parse_conf_group(const char* cfgfile);
98const char* parse_conf_chroot(const char* cfgfile);
99
108int parse_conf_use_syslog(const char* cfgfile);
109int parse_conf_verbosity(const char* cfgfile);
110
112int parse_conf_worker_threads(const char* cfgfile);
113int parse_conf_signer_threads(const char* cfgfile);
114
115#endif /* PARSE_CONFPARSER_H */
const char * parse_conf_clisock_filename(const char *cfgfile)
Definition: confparser.c:513
const char * parse_conf_zonelist_filename(const char *cfgfile)
Definition: confparser.c:418
hsm_repository_t * parse_conf_repositories(const char *cfgfile)
Definition: confparser.c:143
const char * parse_conf_working_dir(const char *cfgfile)
Definition: confparser.c:536
const char * parse_conf_log_filename(const char *cfgfile)
Definition: confparser.c:457
int parse_conf_worker_threads(const char *cfgfile)
Definition: confparser.c:641
const char * parse_conf_username(const char *cfgfile)
Definition: confparser.c:556
const char * parse_conf_pid_filename(const char *cfgfile)
Definition: confparser.c:477
int parse_conf_signer_threads(const char *cfgfile)
Definition: confparser.c:658
int parse_conf_use_syslog(const char *cfgfile)
Definition: confparser.c:611
const char * parse_conf_notify_command(const char *cfgfile)
Definition: confparser.c:496
const char * parse_conf_chroot(const char *cfgfile)
Definition: confparser.c:590
const char * parse_conf_group(const char *cfgfile)
Definition: confparser.c:573
int parse_conf_verbosity(const char *cfgfile)
Definition: confparser.c:624
ods_status parse_file_check(const char *cfgfile, const char *rngfile)
Definition: confparser.c:55
const char * parse_conf_string(const char *cfgfile, const char *expr, int required)
Definition: confparser.c:355
listener_type * parse_conf_listener(const char *cfgfile)
Definition: confparser.c:252