OpenDNSSEC-signer  1.3.15
confparser.h
Go to the documentation of this file.
1 /*
2  * $Id: confparser.h 6065 2012-01-16 09:45:47Z jerry $
3  *
4  * Copyright (c) 2009 NLNet Labs. All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  *
27  */
28 
34 #ifndef PARSER_CONFPARSER_H
35 #define PARSER_CONFPARSER_H
36 
37 #include "config.h"
38 #include "adapter/adapter.h"
39 #include "shared/allocator.h"
40 #include "shared/status.h"
41 
42 #define ADMAX 6 /* Maximum number of adapters that can be initialized */
43 
51 ods_status parse_file_check(const char* cfgfile, const char* rngfile);
52 
61 const char* parse_conf_string(const char* cfgfile, const char* expr,
62  int required);
63 
73  const char* cfgfile, int* count);
74 
84 const char* parse_conf_zonelist_filename(allocator_type* allocator,
85  const char* cfgfile);
86 const char* parse_conf_zonefetch_filename(allocator_type* allocator,
87  const char* cfgfile);
88 const char* parse_conf_log_filename(allocator_type* allocator,
89  const char* cfgfile);
90 
92 const char* parse_conf_pid_filename(allocator_type* allocator,
93  const char* cfgfile);
94 const char* parse_conf_notify_command(allocator_type* allocator,
95  const char* cfgfile);
96 const char* parse_conf_clisock_filename(allocator_type* allocator,
97  const char* cfgfile);
98 const char* parse_conf_working_dir(allocator_type* allocator,
99  const char* cfgfile);
100 const char* parse_conf_username(allocator_type* allocator,
101  const char* cfgfile);
102 const char* parse_conf_group(allocator_type* allocator,
103  const char* cfgfile);
104 const char* parse_conf_chroot(allocator_type* allocator,
105  const char* cfgfile);
106 
115 int parse_conf_use_syslog(const char* cfgfile);
116 int parse_conf_verbosity(const char* cfgfile);
117 
119 int parse_conf_worker_threads(const char* cfgfile);
120 int parse_conf_signer_threads(const char* cfgfile);
121 
122 #endif /* PARSE_CONFPARSER_H */