OpenDNSSEC-signer 1.3.0rc3
|
#include "config.h"
#include "adapter/adapter.h"
#include "shared/allocator.h"
#include "shared/status.h"
Go to the source code of this file.
Defines | |
#define | ADMAX 6 |
Functions | |
ods_status | parse_file_check (const char *cfgfile, const char *rngfile) |
const char * | parse_conf_string (const char *cfgfile, const char *expr, int required) |
adapter_type ** | parse_conf_adapters (allocator_type *allocator, const char *cfgfile, int *count) |
const char * | parse_conf_zonelist_filename (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_zonefetch_filename (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_log_filename (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_pid_filename (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_notify_command (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_clisock_filename (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_working_dir (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_username (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_group (allocator_type *allocator, const char *cfgfile) |
const char * | parse_conf_chroot (allocator_type *allocator, const char *cfgfile) |
int | parse_conf_use_syslog (const char *cfgfile) |
int | parse_conf_worker_threads (const char *cfgfile) |
int | parse_conf_signer_threads (const char *cfgfile) |
#define ADMAX 6 |
Parsing configuration files.
Definition at line 42 of file confparser.h.
Referenced by parse_conf_adapters().
adapter_type** parse_conf_adapters | ( | allocator_type * | allocator, |
const char * | cfgfile, | ||
int * | count | ||
) |
Parse the adapters.
[in] | allocator | the allocator |
[in] | cfgfile | the configuration file name |
[out] | count | number of adapters encountered |
Parse the adapters.
Definition at line 150 of file confparser.c.
References ADMAX, allocator_alloc(), ods_log_assert, ods_log_debug(), ods_log_error(), ods_log_warning(), ods_strcmp(), and parse_zonelist_adapter().
const char* parse_conf_chroot | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 454 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
const char* parse_conf_clisock_filename | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 382 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
const char* parse_conf_group | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 437 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
const char* parse_conf_log_filename | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 326 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
const char* parse_conf_notify_command | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 365 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
const char* parse_conf_pid_filename | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Signer specific
Definition at line 346 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
int parse_conf_signer_threads | ( | const char * | cfgfile | ) |
Definition at line 506 of file confparser.c.
References parse_conf_string(), and parse_conf_worker_threads().
Referenced by engine_config().
const char* parse_conf_string | ( | const char * | cfgfile, |
const char * | expr, | ||
int | required | ||
) |
Parse elements from the configuration file.
[in] | cfgfile | configuration file |
[in] | expr | xml expression |
[in] | required | if the element is required |
Parse elements from the configuration file.
Definition at line 236 of file confparser.c.
References ods_log_assert, and ods_log_error().
Referenced by parse_conf_chroot(), parse_conf_clisock_filename(), parse_conf_group(), parse_conf_log_filename(), parse_conf_notify_command(), parse_conf_pid_filename(), parse_conf_signer_threads(), parse_conf_use_syslog(), parse_conf_username(), parse_conf_worker_threads(), parse_conf_working_dir(), parse_conf_zonefetch_filename(), parse_conf_zonelist_filename(), parse_sc_audit(), parse_sc_dnskey_ttl(), parse_sc_dnskey_ttl_use(), parse_sc_nsec3_algorithm(), parse_sc_nsec3_iterations(), parse_sc_nsec3_optout(), parse_sc_nsec3_salt(), parse_sc_nsec_type(), parse_sc_sig_inception_offset(), parse_sc_sig_jitter(), parse_sc_sig_refresh_interval(), parse_sc_sig_resign_interval(), parse_sc_sig_validity_default(), parse_sc_sig_validity_denial(), parse_sc_soa_min(), parse_sc_soa_min_use(), parse_sc_soa_serial(), parse_sc_soa_ttl(), and parse_sc_soa_ttl_use().
int parse_conf_use_syslog | ( | const char * | cfgfile | ) |
Parse elements from the configuration file.
[in] | cfgfile | the configuration file name |
Parse elements from the configuration file.
Definition at line 475 of file confparser.c.
References parse_conf_string().
Referenced by engine_config().
const char* parse_conf_username | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 420 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
int parse_conf_worker_threads | ( | const char * | cfgfile | ) |
Signer specific
Definition at line 489 of file confparser.c.
References parse_conf_string().
Referenced by engine_config(), and parse_conf_signer_threads().
const char* parse_conf_working_dir | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 401 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
const char* parse_conf_zonefetch_filename | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Definition at line 309 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
const char* parse_conf_zonelist_filename | ( | allocator_type * | allocator, |
const char * | cfgfile | ||
) |
Parse elements from the configuration file.
[in] | allocator | the allocator |
[in] | cfgfile | the configuration file name |
Definition at line 292 of file confparser.c.
References allocator_strdup(), and parse_conf_string().
Referenced by engine_config().
ods_status parse_file_check | ( | const char * | cfgfile, |
const char * | rngfile | ||
) |
Check config file with rng file.
[in] | cfgfile | the configuration file name |
[in] | rngfile | the rng file name |
Parse elements from the configuration file.
Definition at line 55 of file confparser.c.
References ods_log_assert, ods_log_debug(), ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_OK, ODS_STATUS_PARSE_ERR, ODS_STATUS_RNG_ERR, and ODS_STATUS_XML_ERR.
Referenced by engine_config().