OpenDNSSEC-signer  2.1.10
Functions
zone.c File Reference
#include "adapter/adapter.h"
#include "file.h"
#include "hsm.h"
#include "locks.h"
#include "log.h"
#include "status.h"
#include "util.h"
#include "signer/backup.h"
#include "signer/zone.h"
#include "wire/netio.h"
#include "compat.h"
#include "daemon/signertasks.h"
#include <ldns/ldns.h>

Go to the source code of this file.

Functions

zone_typezone_create (char *name, ldns_rr_class klass)
 
ods_status zone_load_signconf (zone_type *zone, signconf_type **new_signconf)
 
ods_status zone_publish_dnskeys (zone_type *zone, int skip_hsm_access)
 
void zone_rollback_dnskeys (zone_type *zone)
 
ods_status zone_publish_nsec3param (zone_type *zone)
 
void zone_rollback_nsec3param (zone_type *zone)
 
ods_status zone_prepare_keys (zone_type *zone)
 
ods_status zone_update_serial (zone_type *zone)
 
rrset_typezone_lookup_rrset (zone_type *zone, ldns_rdf *owner, ldns_rr_type type)
 
ods_status zone_add_rr (zone_type *zone, ldns_rr *rr, int do_stats)
 
ods_status zone_del_rr (zone_type *zone, ldns_rr *rr, int do_stats)
 
ods_status zone_del_nsec3params (zone_type *zone)
 
void zone_merge (zone_type *z1, zone_type *z2)
 
void zone_cleanup (zone_type *zone)
 
ods_status zone_recover2 (engine_type *engine, zone_type *zone)
 
ods_status zone_backup2 (zone_type *zone, time_t nextResign)
 

Function Documentation

◆ zone_add_rr()

ods_status zone_add_rr ( zone_type zone,
ldns_rr *  rr,
int  do_stats 
)

◆ zone_backup2()

ods_status zone_backup2 ( zone_type zone,
time_t  nextResign 
)

◆ zone_cleanup()

void zone_cleanup ( zone_type zone)

◆ zone_create()

zone_type* zone_create ( char *  name,
ldns_rr_class  klass 
)

Create a new zone.

Definition at line 55 of file zone.c.

References zone_struct::name, zone_struct::xfr_lock, and zone_struct::zone_lock.

Referenced by zonelist_lookup_zone_by_name().

◆ zone_del_nsec3params()

ods_status zone_del_nsec3params ( zone_type zone)

Delete NSEC3PARAM RRs.

Marks all NSEC3PARAM records as removed.

Definition at line 655 of file zone.c.

References zone_struct::apex, zone_struct::db, zone_struct::name, and namedb_lookup_domain().

◆ zone_del_rr()

ods_status zone_del_rr ( zone_type zone,
ldns_rr *  rr,
int  do_stats 
)

Delete RR.

Definition at line 611 of file zone.c.

References zone_struct::db, zone_struct::name, namedb_lookup_domain(), and zone_struct::signconf.

◆ zone_load_signconf()

ods_status zone_load_signconf ( zone_type zone,
signconf_type **  new_signconf 
)

Load signer configuration for zone.

Definition at line 133 of file zone.c.

References zone_struct::name, zone_struct::signconf, and zone_struct::signconf_filename.

Referenced by tools_signconf().

◆ zone_lookup_rrset()

rrset_type* zone_lookup_rrset ( zone_type zone,
ldns_rdf *  owner,
ldns_rr_type  type 
)

Lookup RRset.

Definition at line 510 of file zone.c.

References zone_struct::db, domain_lookup_rrset(), and namedb_lookup_domain().

Referenced by zone_rollback_dnskeys(), and zone_rollback_nsec3param().

◆ zone_merge()

void zone_merge ( zone_type z1,
zone_type z2 
)

Merge zones.

Definition at line 694 of file zone.c.

References zone_struct::policy_name.

◆ zone_prepare_keys()

ods_status zone_prepare_keys ( zone_type zone)

Prepare keys for signing.

Definition at line 393 of file zone.c.

References zone_struct::db, signconf_struct::keys, zone_struct::name, and zone_struct::signconf.

◆ zone_publish_dnskeys()

ods_status zone_publish_dnskeys ( zone_type zone,
int  skip_hsm_access 
)

Publish the keys as indicated by the signer configuration.

Definition at line 186 of file zone.c.

References zone_struct::db, signconf_struct::keys, zone_struct::name, and zone_struct::signconf.

Referenced by tools_input().

◆ zone_publish_nsec3param()

ods_status zone_publish_nsec3param ( zone_type zone)

Publish the NSEC3 parameters as indicated by the signer configuration.

Always set bit 7 of the flags to zero, according to rfc5155 section 11

Definition at line 306 of file zone.c.

References zone_struct::db, zone_struct::name, signconf_struct::nsec3param_ttl, signconf_struct::nsec3params, signconf_struct::nsec_type, nsec3params_struct::rr, and zone_struct::signconf.

◆ zone_recover2()

ods_status zone_recover2 ( engine_type engine,
zone_type zone 
)

Recover zone from backup.

Definition at line 792 of file zone.c.

◆ zone_rollback_dnskeys()

void zone_rollback_dnskeys ( zone_type zone)

◆ zone_rollback_nsec3param()

void zone_rollback_nsec3param ( zone_type zone)

◆ zone_update_serial()

ods_status zone_update_serial ( zone_type zone)