OpenDNSSEC-signer
1.4.9
|
#include "config.h"
#include "shared/allocator.h"
#include "shared/locks.h"
#include "shared/status.h"
#include "wire/listener.h"
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | engineconfig_struct |
Typedefs | |
typedef struct engineconfig_struct | engineconfig_type |
Functions | |
engineconfig_type * | engine_config (allocator_type *allocator, const char *cfgfile, int cmdline_verbosity) |
ods_status | engine_config_check (engineconfig_type *config) |
void | engine_config_print (FILE *out, engineconfig_type *config) |
void | engine_config_cleanup (engineconfig_type *config) |
typedef struct engineconfig_struct engineconfig_type |
engineconfig_type* engine_config | ( | allocator_type * | allocator, |
const char * | cfgfile, | ||
int | cmdline_verbosity | ||
) |
Configure engine.
[in] | allocator | memory allocator |
[in] | cfgfile | config file |
[in] | cmdline_verbosity | log level |
Configure engine.
Definition at line 52 of file cfg.c.
References engineconfig_struct::allocator, allocator_alloc(), allocator_strdup(), engineconfig_struct::cfg_filename, engineconfig_struct::chroot, engineconfig_struct::clisock_filename, engineconfig_struct::group, engineconfig_struct::interfaces, engineconfig_struct::log_filename, engineconfig_struct::notify_command, engineconfig_struct::num_signer_threads, engineconfig_struct::num_worker_threads, ods_fclose(), ods_fopen(), ods_log_error(), ods_log_verbose(), ODS_STATUS_OK, parse_conf_chroot(), parse_conf_clisock_filename(), parse_conf_group(), parse_conf_listener(), 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_verbosity(), parse_conf_worker_threads(), parse_conf_working_dir(), parse_conf_zonelist_filename(), parse_file_check(), engineconfig_struct::pid_filename, engineconfig_struct::use_syslog, engineconfig_struct::username, engineconfig_struct::verbosity, engineconfig_struct::working_dir, and engineconfig_struct::zonelist_filename.
Referenced by engine_start(), and main().
ods_status engine_config_check | ( | engineconfig_type * | config | ) |
Check configuration.
[in] | config | engine configuration |
Check configuration.
Definition at line 121 of file cfg.c.
References engineconfig_struct::cfg_filename, engineconfig_struct::clisock_filename, engineconfig_struct::interfaces, ods_log_error(), ODS_STATUS_CFG_ERR, ODS_STATUS_OK, and engineconfig_struct::zonelist_filename.
Referenced by engine_start(), and main().
void engine_config_cleanup | ( | engineconfig_type * | config | ) |
Clean up config.
[in] | config | engine configuration |
Clean up config.
Definition at line 251 of file cfg.c.
References engineconfig_struct::allocator, allocator_deallocate(), engineconfig_struct::cfg_filename, engineconfig_struct::chroot, engineconfig_struct::clisock_filename, engineconfig_struct::group, engineconfig_struct::interfaces, listener_cleanup(), engineconfig_struct::log_filename, engineconfig_struct::notify_command, engineconfig_struct::pid_filename, engineconfig_struct::username, engineconfig_struct::working_dir, and engineconfig_struct::zonelist_filename.
Referenced by engine_cleanup(), and main().
void engine_config_print | ( | FILE * | out, |
engineconfig_type * | config | ||
) |
Print engine configuration.
[in] | out | output file descriptor |
[in] | config | engine configuration |
Print configuration.
Definition at line 157 of file cfg.c.
References interface_struct::address, engineconfig_struct::chroot, listener_struct::count, engineconfig_struct::group, engineconfig_struct::interfaces, listener_struct::interfaces, engineconfig_struct::log_filename, engineconfig_struct::notify_command, engineconfig_struct::num_signer_threads, engineconfig_struct::num_worker_threads, interface_struct::port, engineconfig_struct::use_syslog, engineconfig_struct::username, engineconfig_struct::working_dir, and engineconfig_struct::zonelist_filename.
Referenced by engine_start().