OpenDNSSEC-signer  1.3.9
Macros | Functions
confparser.h File Reference
#include "config.h"
#include "adapter/adapter.h"
#include "shared/allocator.h"
#include "shared/status.h"
Include dependency graph for confparser.h:
This graph shows which files directly or indirectly include this file:

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)
 
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_verbosity (const char *cfgfile)
 
int parse_conf_worker_threads (const char *cfgfile)
 
int parse_conf_signer_threads (const char *cfgfile)
 

Macro Definition Documentation

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

Parsing configuration files.

Definition at line 42 of file confparser.h.

Referenced by parse_conf_adapters().

Function Documentation

adapter_type** parse_conf_adapters ( allocator_type allocator,
const char *  cfgfile,
int *  count 
)

Parse the adapters.

Parameters
[in]allocatorthe allocator
[in]cfgfilethe configuration file name
[out]countnumber of adapters encountered
Returns
adapter_type** bunch of adapters that need to be initialized.

Parse the adapters.

Definition at line 148 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 452 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 380 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 435 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 324 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 363 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 344 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 520 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 
)
int parse_conf_use_syslog ( const char *  cfgfile)

Parse elements from the configuration file.

Parameters
[in]cfgfilethe configuration file name
Returns
int integerCommon

Parse elements from the configuration file.

Definition at line 473 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 418 of file confparser.c.

References allocator_strdup(), and parse_conf_string().

Referenced by engine_config().

int parse_conf_verbosity ( const char *  cfgfile)

Definition at line 486 of file confparser.c.

References parse_conf_string().

Referenced by engine_config().

int parse_conf_worker_threads ( const char *  cfgfile)

Signer specific

Definition at line 503 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 399 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 307 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.

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

Definition at line 290 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.

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.

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().