OpenDNSSEC-signer 1.2.1
|
#include "config.h"
#include "signer/nsec3params.h"
#include "signer/rrset.h"
#include <ldns/ldns.h>
Go to the source code of this file.
Data Structures | |
struct | denial_struct |
Typedefs | |
typedef struct denial_struct | denial_type |
Functions | |
denial_type * | denial_create (ldns_rdf *owner) |
denial_type * | denial_recover_from_backup (FILE *fd) |
int | denial_recover_rrsig_from_backup (denial_type *denial, ldns_rr *rrsig, ldns_rr_type type_covered, const char *locator, uint32_t flags) |
int | denial_nsecify (denial_type *denial, denial_type *nxt, uint32_t ttl, ldns_rr_class klass) |
int | denial_nsecify3 (denial_type *denial, denial_type *nxt, uint32_t ttl, ldns_rr_class klass, nsec3params_type *nsec3params) |
void | denial_cleanup (denial_type *denial) |
typedef struct denial_struct denial_type |
void denial_cleanup | ( | denial_type * | denial | ) |
Clean up Denial of Existence data point.
[in] | denial | Denial of Existence data point |
Clean up Denial of Existence data point.
Definition at line 517 of file denial.c.
References denial_struct::owner, denial_struct::rrset, and rrset_cleanup().
Referenced by zonedata_add_denial(), and zonedata_cleanup_denials().
denial_type* denial_create | ( | ldns_rdf * | owner | ) |
Create new Denial of Existence data point.
[in] | owner | owner name of the NSEC or NSEC3 RRset |
Create new Denial of Existence data point.
Definition at line 54 of file denial.c.
References denial_struct::bitmap_changed, denial_struct::domain, denial_struct::nxt_changed, denial_struct::owner, denial_struct::rrset, se_log_assert, se_log_error(), and se_malloc().
Referenced by zonedata_add_denial(), and zonedata_recover_from_backup().
int denial_nsecify | ( | denial_type * | denial, |
denial_type * | nxt, | ||
uint32_t | ttl, | ||
ldns_rr_class | klass | ||
) |
Add NSEC to the Denial of Existence data point.
[in] | denial | Denial of Existence data point |
[in] | nxt | next Denial of Existence data point |
[in] | ttl | ttl |
[in] | klass | class |
Add NSEC to the Denial of Existence data point.
Definition at line 265 of file denial.c.
References denial_struct::bitmap_changed, rrset_struct::initialized, denial_struct::nxt_changed, denial_struct::rrset, rrset_add_rr(), rrset_create(), rrset_del_rrs(), rrset_update(), se_log_alert(), se_log_assert, and se_log_error().
Referenced by zonedata_nsecify().
int denial_nsecify3 | ( | denial_type * | denial, |
denial_type * | nxt, | ||
uint32_t | ttl, | ||
ldns_rr_class | klass, | ||
nsec3params_type * | nsec3params | ||
) |
Add NSEC3 to the Denial of Existence data point.
[in] | denial | Denial of Existence data point |
[in] | nxt | next Denial of Existence data point |
[in] | ttl | ttl |
[in] | klass | class |
[in] | nsec3params | NSEC3 parameters |
Add NSEC3 to the Denial of Existence data point.
Definition at line 445 of file denial.c.
References denial_struct::bitmap_changed, rrset_struct::initialized, denial_struct::nxt_changed, denial_struct::rrset, rrset_add_rr(), rrset_create(), rrset_del_rrs(), rrset_update(), se_log_alert(), se_log_assert, and se_log_error().
Referenced by zonedata_nsecify3().
denial_type* denial_recover_from_backup | ( | FILE * | fd | ) |
Recover Denial of Existence data point from backup.
[in] | fd | backup file descriptor |
Recover denial from backup.
Definition at line 91 of file denial.c.
References backup_read_int(), backup_read_size_t(), backup_read_str(), backup_read_uint32_t(), denial_struct::bitmap_changed, denial_struct::domain, DOMAIN_STATUS_NONE, denial_struct::nxt_changed, denial_struct::owner, denial_struct::rrset, se_free(), se_log_assert, se_log_error(), and se_malloc().
Referenced by zonedata_recover_from_backup().
int denial_recover_rrsig_from_backup | ( | denial_type * | denial, |
ldns_rr * | rrsig, | ||
ldns_rr_type | type_covered, | ||
const char * | locator, | ||
uint32_t | flags | ||
) |
Recover RRSIG from backup.
[in] | denial | Denial of Existence data point |
[in] | rrsig | RRSIG |
[in] | type_covered | RRtype that is covered by rrsig |
[in] | locator | key locator |
[in] | flags | key flags |
Recover RRSIG from backup.
Definition at line 145 of file denial.c.
References denial_struct::owner, denial_struct::rrset, rrset_recover_rrsig_from_backup(), se_log_assert, and se_log_error().
Referenced by zonedata_recover_rrsig_from_backup().