OpenDNSSEC-signer 1.3.0rc3
|
#include "config.h"
#include "shared/duration.h"
#include "shared/allocator.h"
#include "shared/log.h"
#include "shared/status.h"
#include "shared/util.h"
#include "signer/backup.h"
#include "signer/domain.h"
#include "signer/rrset.h"
#include <ldns/ldns.h>
Go to the source code of this file.
rrset_type* domain_add_rrset | ( | domain_type * | domain, |
rrset_type * | rrset | ||
) |
Add RRset to domain.
Definition at line 332 of file domain.c.
References ods_log_assert, ods_log_error(), and domain_struct::rrsets.
Referenced by zone_add_rr().
void domain_backup | ( | FILE * | fd, |
domain_type * | domain | ||
) |
Backup domain.
Definition at line 988 of file domain.c.
References domain_struct::denial, domain_struct::dname, domain_struct::dstatus, denial_struct::rrset, rrset_backup(), rrset_print(), and domain_struct::rrsets.
Referenced by zonedata_backup().
void domain_cleanup | ( | domain_type * | domain | ) |
Clean up domain.
Definition at line 888 of file domain.c.
References domain_struct::allocator, allocator_cleanup(), allocator_deallocate(), domain_struct::dname, and domain_struct::rrsets.
ods_status domain_commit | ( | domain_type * | domain | ) |
Commit updates to domain.
Definition at line 663 of file domain.c.
References denial_struct::bitmap_changed, COUNT_ADD, COUNT_DEL, COUNT_RR, domain_struct::denial, domain_del_rrset(), rrset_struct::needs_signing, ods_log_warning(), ODS_STATUS_OK, ODS_STATUS_UNCHANGED, rrset_struct::rr_type, rrset_struct::rrs, rrset_commit(), rrset_count_rr(), and domain_struct::rrsets.
Referenced by zonedata_commit().
size_t domain_count_rrset | ( | domain_type * | domain | ) |
Count the number of RRsets at this domain.
Definition at line 401 of file domain.c.
References COUNT_RR, rrset_count_rr(), and domain_struct::rrsets.
Referenced by domain_dstatus(), domain_examine_rrset_is_alone(), zonedata_commit(), and zonedata_nsecify().
domain_type* domain_create | ( | ldns_rdf * | dname | ) |
Create empty domain.
Definition at line 67 of file domain.c.
References domain_struct::allocator, allocator_alloc(), allocator_cleanup(), allocator_create(), domain_struct::denial, domain_struct::dname, DOMAIN_STATUS_NONE, domain_struct::dstatus, ods_log_assert, ods_log_error(), domain_struct::parent, and domain_struct::rrsets.
Referenced by zone_add_rr().
rrset_type* domain_del_rrset | ( | domain_type * | domain, |
rrset_type * | rrset | ||
) |
Delete RRset from domain.
Definition at line 364 of file domain.c.
References ods_log_assert, ods_log_error(), rrset_struct::rr_type, rrset_cleanup(), and domain_struct::rrsets.
Referenced by domain_commit().
ods_status domain_diff | ( | domain_type * | domain, |
keylist_type * | kl | ||
) |
Calculate differences at this domain between current and new RRsets.
Definition at line 430 of file domain.c.
References ODS_STATUS_OK, rrset_struct::rr_type, rrset_diff(), and domain_struct::rrsets.
Referenced by zonedata_diff().
void domain_dstatus | ( | domain_type * | domain | ) |
Set domain status.
Definition at line 745 of file domain.c.
References domain_count_rrset(), domain_lookup_rrset(), DOMAIN_STATUS_APEX, DOMAIN_STATUS_AUTH, DOMAIN_STATUS_DS, DOMAIN_STATUS_ENT, DOMAIN_STATUS_NS, DOMAIN_STATUS_OCCLUDED, domain_struct::dstatus, ods_log_error(), and domain_struct::parent.
Referenced by zonedata_entize().
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 465 of file domain.c.
References ods_log_assert, rrset_struct::rr_type, rrset_count_RR(), and domain_struct::rrsets.
int domain_examine_ns_rdata | ( | domain_type * | domain, |
ldns_rdf * | nsdname | ||
) |
Examine domain NS RRset and verify its RDATA.
Definition at line 845 of file domain.c.
References domain_lookup_rrset(), and rrset_examine_ns_rdata().
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 505 of file domain.c.
References rrset_struct::add, domain_struct::dname, domain_count_rrset(), domain_lookup_rrset(), log_rr(), ods_log_assert, ods_log_error(), rrset_struct::rr_type, rrset_struct::rrs, rrset_count_RR(), and domain_struct::rrsets.
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 626 of file domain.c.
References domain_struct::dname, domain_lookup_rrset(), ods_log_assert, ods_log_error(), and rrset_count_RR().
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 570 of file domain.c.
References domain_lookup_rrset(), ods_log_assert, ods_log_error(), rrset_struct::rr_type, rrset_count_RR(), and domain_struct::rrsets.
rrset_type* domain_lookup_rrset | ( | domain_type * | domain, |
ldns_rr_type | rrtype | ||
) |
Look up RRset at this domain.
Definition at line 318 of file domain.c.
References domain_struct::rrsets.
Referenced by domain_dstatus(), domain_examine_ns_rdata(), domain_examine_rrset_is_alone(), domain_examine_rrset_is_singleton(), domain_examine_valid_zonecut(), domain_print(), domain_recover(), zone_add_rr(), zone_del_rr(), zone_prepare_nsec3(), and zone_update_serial().
void domain_print | ( | FILE * | fd, |
domain_type * | domain | ||
) |
Print domain.
Definition at line 917 of file domain.c.
References domain_struct::denial, domain_lookup_rrset(), DOMAIN_STATUS_APEX, DOMAIN_STATUS_OCCLUDED, domain_struct::dstatus, ods_log_assert, rrset_struct::rr_type, denial_struct::rrset, rrset_print(), and domain_struct::rrsets.
Referenced by zonedata_print().
ods_status domain_queue | ( | domain_type * | domain, |
fifoq_type * | q, | ||
worker_type * | worker | ||
) |
Queue all RRsets at this domain.
Definition at line 790 of file domain.c.
References domain_struct::denial, DOMAIN_STATUS_APEX, DOMAIN_STATUS_DS, DOMAIN_STATUS_NONE, DOMAIN_STATUS_NS, DOMAIN_STATUS_OCCLUDED, domain_struct::dstatus, ODS_STATUS_OK, rrset_struct::rr_type, denial_struct::rrset, rrset_queue(), and domain_struct::rrsets.
Referenced by zonedata_queue().
ods_status domain_recover | ( | domain_type * | domain, |
FILE * | fd, | ||
domain_status | dstatus | ||
) |
Recover domain from backup.
Definition at line 115 of file domain.c.
References backup_read_check_str(), backup_read_str(), backup_read_uint32_t(), domain_struct::denial, denial_create(), denial_struct::domain, domain_lookup_rrset(), domain_struct::dstatus, ods_log_assert, ods_log_error(), ODS_STATUS_ERR, ODS_STATUS_OK, ods_strcmp(), denial_struct::rrset, rrset_add_rr(), rrset_commit(), rrset_create(), and rrset_recover().
Referenced by zonedata_recover().
void domain_rollback | ( | domain_type * | domain | ) |
Rollback updates from domain.
Definition at line 720 of file domain.c.
References rrset_rollback(), and domain_struct::rrsets.
Referenced by zonedata_rollback().