OpenDNSSEC-signer 1.2.1
Functions

/build/buildd-opendnssec_1.2.1.dfsg-1-mips-p9AT07/opendnssec-1.2.1.dfsg/signer/src/signer/zone.c File Reference

#include "adapter/adapter.h"
#include "scheduler/locks.h"
#include "scheduler/task.h"
#include "signer/backup.h"
#include "signer/hsm.h"
#include "signer/nsec3params.h"
#include "signer/signconf.h"
#include "signer/zone.h"
#include "signer/zonedata.h"
#include "util/duration.h"
#include "util/file.h"
#include "util/log.h"
#include "util/se_malloc.h"
#include "util/util.h"
#include <ldns/ldns.h>
#include <libhsm.h>
#include <libhsmdns.h>
Include dependency graph for zone.c:

Go to the source code of this file.

Functions

zone_typezone_create (const char *name, ldns_rr_class klass)
void zone_update_zonelist (zone_type *z1, zone_type *z2)
int zone_update_signconf (zone_type *zone, struct tasklist_struct *tl, char *buf)
int zone_update_zonedata (zone_type *zone)
int zone_add_dnskeys (zone_type *zone)
int zone_add_rr (zone_type *zone, ldns_rr *rr, int recover)
int zone_del_rr (zone_type *zone, ldns_rr *rr)
int zone_nsecify (zone_type *zone)
int zone_sign (zone_type *zone)
int zone_backup_state (zone_type *zone)
void zone_recover_from_backup (zone_type *zone, struct tasklist_struct *tl)
void zone_cleanup (zone_type *zone)
void zone_print (FILE *out, zone_type *zone)

Function Documentation

int zone_add_dnskeys ( zone_type zone)

Publish DNSKEY and NSEC3PARAM records to the zone.

Definition at line 455 of file zone.c.

References zone_struct::name, signconf_struct::nsec_type, se_build_path(), se_fclose(), se_fopen(), se_free(), se_log_assert, se_log_error(), se_log_warning(), zone_struct::signconf, and zone_struct::zonedata.

Referenced by tools_add_dnskeys().

int zone_add_rr ( zone_type zone,
ldns_rr *  rr,
int  recover 
)
int zone_backup_state ( zone_type zone)
void zone_cleanup ( zone_type zone)
zone_type* zone_create ( const char *  name,
ldns_rr_class  klass 
)
int zone_del_rr ( zone_type zone,
ldns_rr *  rr 
)

Delete a RR from the zone.

Definition at line 571 of file zone.c.

References se_log_assert, zone_struct::zonedata, and zonedata_del_rr().

int zone_nsecify ( zone_type zone)
void zone_print ( FILE *  out,
zone_type zone 
)

Print zone.

Definition at line 1111 of file zone.c.

References se_log_assert, zone_struct::zonedata, and zonedata_print().

Referenced by adfile_write().

void zone_recover_from_backup ( zone_type zone,
struct tasklist_struct tl 
)
int zone_sign ( zone_type zone)
int zone_update_signconf ( zone_type zone,
struct tasklist_struct tl,
char *  buf 
)
int zone_update_zonedata ( zone_type zone)
void zone_update_zonelist ( zone_type z1,
zone_type z2 
)