OpenDNSSEC-signer  1.4.6
Data Structures | Typedefs | Functions
denial.h File Reference
#include "config.h"
#include "shared/allocator.h"
#include "shared/status.h"
#include "signer/nsec3params.h"
#include "signer/rrset.h"
#include <ldns/ldns.h>
#include <time.h>
Include dependency graph for denial.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  denial_struct
 

Typedefs

typedef struct denial_struct denial_type
 

Functions

denial_typedenial_create (void *zoneptr, ldns_rdf *dname)
 
void denial_diff (denial_type *denial)
 
void denial_add_rr (denial_type *denial, ldns_rr *rr)
 
void denial_nsecify (denial_type *denial, denial_type *nxt, uint32_t *num_added)
 
void denial_print (FILE *fd, denial_type *denial, ods_status *status)
 
void denial_cleanup (denial_type *denial)
 

Typedef Documentation

typedef struct denial_struct denial_type

Denial of Existence. Denial of Existence data point.

Definition at line 48 of file denial.h.

Function Documentation

void denial_add_rr ( denial_type denial,
ldns_rr *  rr 
)

Add NSEC(3) to the Denial of Existence data point.

Parameters
[in]denialDenial of Existence data point
[in]rrNSEC(3) resource record

Add NSEC(3) to the Denial of Existence data point.

Definition at line 263 of file denial.c.

References denial_struct::bitmap_changed, denial_diff(), signconf_struct::nsec3params, denial_struct::nxt_changed, ods_fatal_exit(), ods_log_assert, rr_struct::owner, rr_struct::rr, denial_struct::rrset, rrset_add_rr(), rrset_create(), zone_struct::signconf, and denial_struct::zone.

Referenced by backup_read_namedb(), and denial_nsecify().

void denial_cleanup ( denial_type denial)

Cleanup Denial of Existence data point.

Parameters
[in]denialdenial of existence data point

Cleanup Denial of Existence data point.

Definition at line 353 of file denial.c.

References zone_struct::allocator, allocator_deallocate(), denial_struct::dname, denial_struct::rrset, rrset_cleanup(), and denial_struct::zone.

Referenced by namedb_add_denial().

denial_type* denial_create ( void *  zoneptr,
ldns_rdf *  dname 
)

Create new Denial of Existence data point.

Parameters
[in]zoneptrzone reference
[in]dnameowner name
Returns
denial_type* denial of existence data point

Create new Denial of Existence data point.

Definition at line 48 of file denial.c.

References zone_struct::allocator, allocator_alloc(), denial_struct::bitmap_changed, denial_struct::dname, denial_struct::domain, denial_struct::node, denial_struct::nxt_changed, ods_log_error(), denial_struct::rrset, and denial_struct::zone.

Referenced by namedb_add_denial().

void denial_diff ( denial_type denial)

Apply differences at denial.

Parameters
[in]denialDenial of Existence data point

Apply differences at denial.

Definition at line 249 of file denial.c.

References denial_struct::rrset, and rrset_diff().

Referenced by denial_add_rr().

void denial_nsecify ( denial_type denial,
denial_type nxt,
uint32_t *  num_added 
)

Nsecify Denial of Existence data point.

Parameters
[in]denialDenial of Existence data point
[in]nxtnext Denial of Existence data point
[out]num_addednumber of RRs added

Nsecify Denial of Existence data point.

Definition at line 300 of file denial.c.

References denial_struct::bitmap_changed, zone_struct::default_ttl, denial_add_rr(), zone_struct::klass, signconf_struct::nsec3params, denial_struct::nxt_changed, ods_fatal_exit(), ods_log_assert, zone_struct::signconf, and denial_struct::zone.

Referenced by namedb_nsecify().

void denial_print ( FILE *  fd,
denial_type denial,
ods_status status 
)

Print Denial of Existence data point.

Parameters
[in]fdfile descriptor
[in]denialdenial of existence data point
[out]statusstatus

Print Denial of Existence data point.

Definition at line 331 of file denial.c.

References ods_log_crit(), ODS_STATUS_ASSERT_ERR, denial_struct::rrset, and rrset_print().

Referenced by domain_print().