OpenDNSSEC-signer 2.1.13
Macros | Functions
confparser.h File Reference
#include "config.h"
#include "wire/listener.h"
#include "hsm.h"
#include "status.h"

Go to the source code of this file.

Macros

#define ADMAX   6 /* Maximum number of adapters that can be initialized */
 

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)
 
hsm_repository_t * parse_conf_repositories (const char *cfgfile)
 
listener_typeparse_conf_listener (const char *cfgfile)
 
const char * parse_conf_zonelist_filename (const char *cfgfile)
 
const char * parse_conf_log_filename (const char *cfgfile)
 
const char * parse_conf_pid_filename (const char *cfgfile)
 
const char * parse_conf_notify_command (const char *cfgfile)
 
const char * parse_conf_clisock_filename (const char *cfgfile)
 
const char * parse_conf_working_dir (const char *cfgfile)
 
const char * parse_conf_username (const char *cfgfile)
 
const char * parse_conf_group (const char *cfgfile)
 
const char * parse_conf_chroot (const char *cfgfile)
 
int parse_conf_use_syslog (const char *cfgfile)
 
int parse_conf_verbosity (const char *cfgfile)
 
int parse_conf_worker_threads (const char *cfgfile)
 
int parse_conf_signer_threads (const char *cfgfile)
 

Macro Definition Documentation

◆ ADMAX

#define ADMAX   6 /* Maximum number of adapters that can be initialized */

Parsing configuration files.

Definition at line 40 of file confparser.h.

Function Documentation

◆ parse_conf_chroot()

const char * parse_conf_chroot ( const char *  cfgfile)

Definition at line 590 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_clisock_filename()

const char * parse_conf_clisock_filename ( const char *  cfgfile)

Definition at line 513 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_group()

const char * parse_conf_group ( const char *  cfgfile)

Definition at line 573 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_listener()

listener_type * parse_conf_listener ( const char *  cfgfile)

Parse the listener interfaces.

Parameters
[in]allocatorthe allocator
[in]cfgfilethe configuration file name
Returns
listener_type* listener interfaces

Parse the listener interfaces.

Definition at line 252 of file confparser.c.

References acl_parse_family(), listener_create(), and listener_push().

Referenced by engine_config().

◆ parse_conf_log_filename()

const char * parse_conf_log_filename ( const char *  cfgfile)

Definition at line 457 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_notify_command()

const char * parse_conf_notify_command ( const char *  cfgfile)

Definition at line 496 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_pid_filename()

const char * parse_conf_pid_filename ( const char *  cfgfile)

Signer specific

Definition at line 477 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_repositories()

hsm_repository_t * parse_conf_repositories ( const char *  cfgfile)

Parse the repository list.

Parameters
[in]cfgfilethe configuration file name
Returns
hsm_repository_t* repositories

Parse the repositories.

Definition at line 143 of file confparser.c.

Referenced by engine_config().

◆ parse_conf_signer_threads()

int parse_conf_signer_threads ( const char *  cfgfile)

Definition at line 658 of file confparser.c.

References parse_conf_string(), and parse_conf_worker_threads().

Referenced by engine_config().

◆ parse_conf_string()

const char * parse_conf_string ( const char *  cfgfile,
const char *  expr,
int  required 
)

◆ parse_conf_use_syslog()

int parse_conf_use_syslog ( const char *  cfgfile)

Parse elements from the configuration file.

Parameters
[in]cfgfilethe configuration file name
Returns
int integer Common

Parse elements from the configuration file.

Definition at line 611 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_username()

const char * parse_conf_username ( const char *  cfgfile)

Definition at line 556 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_verbosity()

int parse_conf_verbosity ( const char *  cfgfile)

Definition at line 624 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_worker_threads()

int parse_conf_worker_threads ( const char *  cfgfile)

Signer specific

Definition at line 641 of file confparser.c.

References parse_conf_string().

Referenced by engine_config(), and parse_conf_signer_threads().

◆ parse_conf_working_dir()

const char * parse_conf_working_dir ( const char *  cfgfile)

Definition at line 536 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_conf_zonelist_filename()

const char * parse_conf_zonelist_filename ( const char *  cfgfile)

Parse elements from the configuration file.

Parameters
[in]allocatorthe allocator
[in]cfgfilethe configuration file name
Returns
const char* string Common

Definition at line 418 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

◆ parse_file_check()

ods_status parse_file_check ( const char *  cfgfile,
const char *  rngfile 
)

Check config file with rng file.

Parameters
[in]cfgfilethe configuration file name
[in]rngfilethe rng file name
Returns
ods_status status

Parse elements from the configuration file.

Definition at line 55 of file confparser.c.

Referenced by engine_config().