OpenDNSSEC-signer 1.3.0
Data Structures | Typedefs | Functions
/build/buildd/opendnssec-1.3.0/signer/src/signer/denial.h File Reference
#include "config.h"
#include "shared/allocator.h"
#include "signer/nsec3params.h"
#include "signer/rrset.h"
#include <ldns/ldns.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 (ldns_rdf *owner)
ods_status denial_nsecify (denial_type *denial, denial_type *nxt, uint32_t ttl, ldns_rr_class klass)
ods_status 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 Documentation

typedef struct denial_struct denial_type

Denial of Existence data point.

Definition at line 50 of file denial.h.


Function Documentation

void denial_cleanup ( denial_type denial)

Clean up Denial of Existence data point.

Parameters:
[in]denialDenial of Existence data point

Clean up Denial of Existence data point.

Definition at line 445 of file denial.c.

References denial_struct::allocator, allocator_cleanup(), allocator_deallocate(), denial_struct::owner, denial_struct::rrset, and rrset_cleanup().

Referenced by zonedata_add_denial().

denial_type* denial_create ( ldns_rdf *  owner)

Create new Denial of Existence data point.

Parameters:
[in]ownerowner name of the NSEC or NSEC3 RRset
Returns:
denial_type* denial of existence data

Create new Denial of Existence data point.

Definition at line 53 of file denial.c.

References denial_struct::allocator, allocator_alloc(), allocator_cleanup(), allocator_create(), denial_struct::bitmap_changed, denial_struct::domain, denial_struct::nxt_changed, ods_log_assert, ods_log_error(), denial_struct::owner, and denial_struct::rrset.

Referenced by domain_recover(), and zonedata_add_denial().

ods_status denial_nsecify ( denial_type denial,
denial_type nxt,
uint32_t  ttl,
ldns_rr_class  klass 
)

Add NSEC to the Denial of Existence data point.

Parameters:
[in]denialDenial of Existence data point
[in]nxtnext Denial of Existence data point
[in]ttlttl
[in]klassclass
Returns:
ods_status status

Add NSEC to the Denial of Existence data point.

Definition at line 196 of file denial.c.

References denial_struct::bitmap_changed, denial_struct::nxt_changed, ods_log_alert(), ods_log_assert, ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_ERR, ODS_STATUS_OK, denial_struct::rrset, rrset_add_rr(), rrset_commit(), rrset_create(), and rrset_wipe_out().

Referenced by zonedata_nsecify().

ods_status 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.

Parameters:
[in]denialDenial of Existence data point
[in]nxtnext Denial of Existence data point
[in]ttlttl
[in]klassclass
[in]nsec3paramsNSEC3 parameters
Returns:
ods_status status

Add NSEC3 to the Denial of Existence data point.

Definition at line 375 of file denial.c.

References denial_struct::bitmap_changed, denial_struct::nxt_changed, ods_log_alert(), ods_log_assert, ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_ERR, ODS_STATUS_OK, denial_struct::rrset, rrset_add_rr(), rrset_commit(), rrset_create(), and rrset_wipe_out().

Referenced by zonedata_nsecify3().