OpenDNSSEC-signer 1.2.1
Functions

/build/buildd-opendnssec_1.2.1.dfsg-1-ia64-j6OroR/opendnssec-1.2.1.dfsg/signer/src/signer/tools.h File Reference

#include "config.h"
#include "daemon/cfg.h"
#include "signer/zone.h"
Include dependency graph for tools.h:

Go to the source code of this file.

Functions

int tools_read_input (zone_type *zone)
int tools_add_dnskeys (zone_type *zone)
int tools_update (zone_type *zone)
int tools_nsecify (zone_type *zone)
int tools_sign (zone_type *zone)
int tools_audit (zone_type *zone, char *working_dir, char *cfg_filename)
int tools_write_output (zone_type *zone)

Function Documentation

int tools_add_dnskeys ( zone_type zone)

Add DNSKEY (and NSEC3PARAM) records to zone.

Parameters:
[in]zonezone
Returns:
int 0 on success, 1 on fail

Add DNSKEY (and NSEC3PARAM) records to zone.

Definition at line 125 of file tools.c.

References zone_struct::name, se_log_assert, se_log_verbose(), zone_struct::signconf, zone_add_dnskeys(), zone_backup_state(), zone_struct::zonedata, and zonedata_cancel_update().

Referenced by worker_perform_task().

int tools_audit ( zone_type zone,
char *  working_dir,
char *  cfg_filename 
)

Audit zone.

Parameters:
[in]zonezone
[in]working_dirworking directory
[in]cfg_filenameconf.xml filename
Returns:
int 0 on success, 1 on fail

Audit zone.

Definition at line 236 of file tools.c.

References adfile_write(), signconf_struct::audit, stats_struct::audit_time, zone_struct::name, se_build_path(), se_free(), se_log_assert, se_log_debug(), se_log_error(), se_log_verbose(), stats_struct::sig_count, stats_struct::sig_soa_count, zone_struct::signconf, stats_struct::sort_done, zone_struct::stats, and SYSTEM_MAXLEN.

Referenced by worker_perform_task().

int tools_nsecify ( zone_type zone)

Add NSEC(3) records to zone.

Parameters:
[in]zonezone
Returns:
int 0 on success, 1 on fail

Add NSEC(3) records to zone.

Definition at line 179 of file tools.c.

References zone_struct::name, stats_struct::nsec_time, se_log_assert, se_log_verbose(), zone_struct::signconf, stats_struct::start_time, zone_struct::stats, and zone_nsecify().

Referenced by worker_perform_task().

int tools_read_input ( zone_type zone)
int tools_sign ( zone_type zone)

Add RRSIG records to zone.

Parameters:
[in]zonezone
Returns:
int 0 on success, 1 on fail

Add NSEC(3) records to zone.

Definition at line 206 of file tools.c.

References zonedata_struct::internal_serial, zone_struct::name, se_log_assert, se_log_verbose(), stats_struct::sig_time, zone_struct::signconf, stats_struct::start_time, zone_struct::stats, zone_backup_state(), zone_sign(), and zone_struct::zonedata.

Referenced by worker_perform_task().

int tools_update ( zone_type zone)

Update zone with pending changes.

Parameters:
[in]zonezone
Returns:
int 0 on success, 1 on fail

Update zone with pending changes.

Definition at line 146 of file tools.c.

References zonedata_struct::internal_serial, zone_struct::name, se_build_path(), se_file_copy(), se_free(), se_log_assert, se_log_verbose(), zone_struct::signconf, stats_struct::sort_done, zone_struct::stats, zone_backup_state(), zone_update_zonedata(), and zone_struct::zonedata.

Referenced by worker_perform_task().

int tools_write_output ( zone_type zone)