OpenDNSSEC-signer 1.2.1
Functions

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

#include "config.h"
#include "signer/backup.h"
#include "signer/domain.h"
#include "signer/hsm.h"
#include "signer/rrset.h"
#include "util/duration.h"
#include "util/log.h"
#include "util/se_malloc.h"
#include "util/util.h"
#include <ldns/ldns.h>
Include dependency graph for domain.c:

Go to the source code of this file.

Functions

domain_typedomain_create (ldns_rdf *dname)
domain_typedomain_recover_from_backup (FILE *fd, int *curnxt, int *curbm)
rrset_typedomain_lookup_rrset (domain_type *domain, ldns_rr_type type)
rrset_typedomain_add_rrset (domain_type *domain, rrset_type *rrset, int recover)
rrset_typedomain_del_rrset (domain_type *domain, rrset_type *rrset, int recover)
int domain_count_rrset (domain_type *domain)
int domain_examine_data_exists (domain_type *domain, ldns_rr_type rrtype, int skip_glue)
int domain_examine_ns_rdata (domain_type *domain, ldns_rdf *nsdname)
int domain_examine_rrset_is_alone (domain_type *domain, ldns_rr_type rrtype)
int domain_examine_valid_zonecut (domain_type *domain)
int domain_examine_rrset_is_singleton (domain_type *domain, ldns_rr_type rrtype)
int domain_update (domain_type *domain, uint32_t serial)
void domain_cancel_update (domain_type *domain)
void domain_update_status (domain_type *domain)
int domain_sign (hsm_ctx_t *ctx, domain_type *domain, ldns_rdf *owner, signconf_type *sc, time_t signtime, uint32_t serial, stats_type *stats)
int domain_add_rr (domain_type *domain, ldns_rr *rr)
int domain_recover_rr_from_backup (domain_type *domain, ldns_rr *rr)
int domain_recover_rrsig_from_backup (domain_type *domain, ldns_rr *rrsig, ldns_rr_type type_covered, const char *locator, uint32_t flags)
int domain_del_rr (domain_type *domain, ldns_rr *rr)
int domain_del_rrs (domain_type *domain)
void domain_cleanup (domain_type *domain)
void domain_print (FILE *fd, domain_type *domain)
void domain_print_nsec (FILE *fd, domain_type *domain)
void domain_print_rrsig (FILE *fd, domain_type *domain)

Function Documentation

int domain_add_rr ( domain_type domain,
ldns_rr *  rr 
)
rrset_type* domain_add_rrset ( domain_type domain,
rrset_type rrset,
int  recover 
)
void domain_cancel_update ( domain_type domain)

Cancel update.

Definition at line 517 of file domain.c.

References rrset_cancel_update(), domain_struct::rrsets, and se_log_assert.

Referenced by zonedata_cancel_update().

void domain_cleanup ( domain_type domain)

Clean up domain.

Definition at line 847 of file domain.c.

References domain_struct::name, domain_struct::rrsets, se_free(), and se_log_warning().

Referenced by zonedata_cleanup_domains().

int domain_count_rrset ( domain_type domain)

Return the number of RRsets at this domain.

Definition at line 256 of file domain.c.

References domain_struct::rrsets, and se_log_assert.

Referenced by domain_examine_rrset_is_alone(), domain_update_status(), zonedata_nsecify(), and zonedata_update().

domain_type* domain_create ( ldns_rdf *  dname)
int domain_del_rr ( domain_type domain,
ldns_rr *  rr 
)

Delete RR from domain.

Definition at line 766 of file domain.c.

References domain_lookup_rrset(), domain_struct::name, rrset_del_rr(), domain_struct::rrsets, se_log_assert, and se_log_warning().

Referenced by zonedata_del_rr().

int domain_del_rrs ( domain_type domain)

Delete all RRs from domain.

Definition at line 792 of file domain.c.

References rrset_del_rrs(), domain_struct::rrsets, and se_log_assert.

Referenced by zonedata_del_rrs().

rrset_type* domain_del_rrset ( domain_type domain,
rrset_type rrset,
int  recover 
)
int domain_examine_data_exists ( domain_type domain,
ldns_rr_type  rrtype,
int  skip_glue 
)

Examine domain and verify if data exists.

Definition at line 271 of file domain.c.

References rrset_struct::rr_type, rrset_count_RR(), domain_struct::rrsets, and se_log_assert.

int domain_examine_ns_rdata ( domain_type domain,
ldns_rdf *  nsdname 
)

Examine domain NS RRset and verify its RDATA.

Definition at line 308 of file domain.c.

References domain_lookup_rrset(), rrset_count_RR(), rrset_examine_ns_rdata(), and se_log_assert.

Referenced by domain_examine_valid_zonecut().

int domain_examine_rrset_is_alone ( domain_type domain,
ldns_rr_type  rrtype 
)

Examine domain and verify if there is no other data next to a RRset.

Definition at line 333 of file domain.c.

References rrset_struct::add, domain_count_rrset(), domain_lookup_rrset(), log_rr(), domain_struct::name, rrset_struct::rr_type, rrset_struct::rrs, rrset_count_RR(), domain_struct::rrsets, se_free(), se_log_assert, and se_log_error().

Referenced by zonedata_examine().

int domain_examine_rrset_is_singleton ( domain_type domain,
ldns_rr_type  rrtype 
)

Examine domain and verify if the RRset is a singleton.

Definition at line 438 of file domain.c.

References domain_lookup_rrset(), domain_struct::name, rrset_count_RR(), se_free(), se_log_assert, and se_log_error().

Referenced by zonedata_examine().

int domain_examine_valid_zonecut ( domain_type domain)

Examine domain and verify if there is no occluded data next to a delegation.

Definition at line 391 of file domain.c.

References domain_examine_ns_rdata(), domain_lookup_rrset(), domain_struct::name, rrset_struct::rr_type, rrset_count_RR(), domain_struct::rrsets, se_log_assert, and se_log_error().

rrset_type* domain_lookup_rrset ( domain_type domain,
ldns_rr_type  type 
)
void domain_print ( FILE *  fd,
domain_type domain 
)
void domain_print_nsec ( FILE *  fd,
domain_type domain 
)
void domain_print_rrsig ( FILE *  fd,
domain_type domain 
)

Print RRSIGs at this domain.

Definition at line 989 of file domain.c.

References domain_struct::denial, denial_struct::rrset, rrset_print_rrsig(), and domain_struct::rrsets.

Referenced by zonedata_print_rrsig().

domain_type* domain_recover_from_backup ( FILE *  fd,
int *  curnxt,
int *  curbm 
)
int domain_recover_rr_from_backup ( domain_type domain,
ldns_rr *  rr 
)
int domain_recover_rrsig_from_backup ( domain_type domain,
ldns_rr *  rrsig,
ldns_rr_type  type_covered,
const char *  locator,
uint32_t  flags 
)
int domain_sign ( hsm_ctx_t *  ctx,
domain_type domain,
ldns_rdf *  owner,
signconf_type sc,
time_t  signtime,
uint32_t  serial,
stats_type stats 
)
int domain_update ( domain_type domain,
uint32_t  serial 
)
void domain_update_status ( domain_type domain)