OpenDNSSEC-signer
2.0.4
|
#include "config.h"
#include <ldns/ldns.h>
#include <time.h>
#include "status.h"
#include "signer/rrset.h"
#include "signer/signconf.h"
Go to the source code of this file.
Data Structures | |
struct | domain_struct |
Macros | |
#define | SE_NSEC_RDATA_NXT 0 |
#define | SE_NSEC_RDATA_BITMAP 1 |
#define | SE_NSEC3_RDATA_NSEC3PARAMS 4 |
#define | SE_NSEC3_RDATA_NXT 4 |
#define | SE_NSEC3_RDATA_BITMAP 5 |
Typedefs | |
typedef struct domain_struct | domain_type |
Functions | |
void | log_dname (ldns_rdf *rdf, const char *pre, int level) |
domain_type * | domain_create (zone_type *zone, ldns_rdf *dname) |
size_t | domain_count_rrset_is_added (domain_type *domain) |
rrset_type * | domain_lookup_rrset (domain_type *domain, ldns_rr_type rrtype) |
void | domain_add_rrset (domain_type *domain, rrset_type *rrset) |
void | domain_diff (domain_type *domain, unsigned is_ixfr, unsigned more_coming) |
void | domain_rollback (domain_type *domain, int keepsc) |
int | domain_ent2unsignedns (domain_type *domain) |
ldns_rr_type | domain_is_delegpt (domain_type *domain) |
ldns_rr_type | domain_is_occluded (domain_type *domain) |
void | domain_print (FILE *fd, domain_type *domain, ods_status *status) |
void | domain_cleanup (domain_type *domain) |
void | domain_backup2 (FILE *fd, domain_type *domain, int sigs) |
typedef struct domain_struct domain_type |
void domain_add_rrset | ( | domain_type * | domain, |
rrset_type * | rrset | ||
) |
Add RRset to domain.
[in] | domain | domain |
[in] | rrset | RRset |
Add RRset to domain.
Definition at line 160 of file domain.c.
References denial_struct::bitmap_changed, domain_struct::denial, domain_struct::dname, rrset_struct::domain, log_rrset(), rrset_struct::next, domain_struct::rrsets, and rrset_struct::rrtype.
void domain_backup2 | ( | FILE * | fd, |
domain_type * | domain, | ||
int | sigs | ||
) |
Backup domain.
[in] | fd | file descriptor |
[in] | domain | domain |
[in] | sigs | do RRSIGS if true, otherwise do RRset |
Backup domain.
Definition at line 485 of file domain.c.
References domain_lookup_rrset(), domain_struct::is_apex, rrset_struct::next, rrset_backup2(), rrset_print(), domain_struct::rrsets, and rrset_struct::rrtype.
Referenced by namedb_backup2().
void domain_cleanup | ( | domain_type * | domain | ) |
Clean up domain.
[in] | domain | domain to cleanup |
Clean up domain.
Definition at line 469 of file domain.c.
References domain_struct::dname, rrset_cleanup(), and domain_struct::rrsets.
size_t domain_count_rrset_is_added | ( | domain_type * | domain | ) |
Count the number of RRsets at this domain with RRs that have is_added.
[in] | domain | domain |
Count the number of RRsets at this domain with RRs that have is_added.
Definition at line 118 of file domain.c.
Referenced by namedb_examine().
domain_type* domain_create | ( | zone_type * | zone, |
ldns_rdf * | dname | ||
) |
Create domain.
[in] | zoneptr | zone reference |
[in] | dname | owner name |
Create domain.
Definition at line 88 of file domain.c.
References domain_struct::dname.
Referenced by namedb_add_domain().
void domain_diff | ( | domain_type * | domain, |
unsigned | is_ixfr, | ||
unsigned | more_coming | ||
) |
Apply differences at domain.
[in] | domain | domain |
[in] | is_ixfr | true if incremental change |
[in] | more_coming | more transactions possible |
Apply differences at domain.
Definition at line 190 of file domain.c.
References denial_struct::bitmap_changed, domain_struct::denial, domain_struct::dname, log_rrset(), rrset_struct::next, rrset_struct::rr_count, rrset_cleanup(), rrset_diff(), domain_struct::rrsets, and rrset_struct::rrtype.
Referenced by namedb_diff().
int domain_ent2unsignedns | ( | domain_type * | domain | ) |
Check whether a domain is an empty non-terminal to an unsigned delegation.
[in] | domain | domain |
Check whether a domain is an empty non-terminal to unsigned delegation.
Definition at line 314 of file domain.c.
References domain_struct::dname, domain_is_delegpt(), domain_is_occluded(), domain_struct::node, and domain_struct::rrsets.
ldns_rr_type domain_is_delegpt | ( | domain_type * | domain | ) |
Check whether a domain is a delegation, regardless of parent.
[in] | domain | domain |
Check whether the domain is a delegation point.
Definition at line 348 of file domain.c.
References domain_lookup_rrset(), and domain_struct::is_apex.
Referenced by domain_ent2unsignedns(), and rrset_sign().
ldns_rr_type domain_is_occluded | ( | domain_type * | domain | ) |
Check whether the domain is occluded.
[in] | domain | domain |
Check whether the domain is occluded.
Definition at line 373 of file domain.c.
References domain_lookup_rrset(), domain_struct::is_apex, and domain_struct::parent.
Referenced by domain_ent2unsignedns(), and rrset_sign().
rrset_type* domain_lookup_rrset | ( | domain_type * | domain, |
ldns_rr_type | rrtype | ||
) |
Look up RRset at this domain.
[in] | domain | the domain |
[in] | rrtype | RRtype |
Look up RRset at this domain.
Definition at line 141 of file domain.c.
References rrset_struct::next, domain_struct::rrsets, and rrset_struct::rrtype.
Referenced by domain_backup2(), domain_is_delegpt(), domain_is_occluded(), namedb_examine(), and zone_lookup_rrset().
void domain_print | ( | FILE * | fd, |
domain_type * | domain, | ||
ods_status * | status | ||
) |
Print domain.
[in] | fd | file descriptor |
[in] | domain | domain |
[out] | status | status |
Print domain.
Definition at line 402 of file domain.c.
Referenced by namedb_export().
void domain_rollback | ( | domain_type * | domain, |
int | keepsc | ||
) |
Rollback differences at domain.
[in] | domain | domain |
[in] | keepsc | keep RRs that did not came from the adapter |
Rollback differences at domain.
Definition at line 241 of file domain.c.
References denial_struct::bitmap_changed, domain_struct::denial, domain_struct::dname, rr_struct::exists, rr_struct::is_added, rr_struct::is_removed, log_rrset(), rrset_struct::next, rr_struct::rr, rrset_struct::rr_count, rrset_struct::rrs, rrset_cleanup(), rrset_del_rr(), domain_struct::rrsets, and rrset_struct::rrtype.
Referenced by namedb_rollback().
void log_dname | ( | ldns_rdf * | rdf, |
const char * | pre, | ||
int | level | ||
) |
Log domain name.
[in] | rdf | domain name |
[in] | pre | log message |
[in] | level | log level |
Log domain name.
Definition at line 48 of file domain.c.
Referenced by namedb_del_denial(), and namedb_del_domain().