denial.h
Go to the documentation of this file.
/*
* Copyright (c) 2011 NLNet Labs. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef SIGNER_DENIAL_H
#define SIGNER_DENIAL_H
#include "config.h"
#include <ldns/ldns.h>
#include <time.h>
typedef struct denial_struct denial_type;
#include "status.h"
#include "signer/nsec3params.h"
#include "signer/rrset.h"
#include "signer/domain.h"
struct denial_struct {
zone_type* zone;
domain_type* domain;
ldns_rbnode_t* node;
ldns_rdf* dname;
rrset_type* rrset;
unsigned bitmap_changed : 1;
unsigned nxt_changed : 1;
};
denial_type* denial_create(zone_type* 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);
#endif /* SIGNER_DENIAL_H */
denial_cleanup
void denial_cleanup(denial_type *denial)
Definition denial.c:350
denial_print
void denial_print(FILE *fd, denial_type *denial, ods_status *status)
Definition denial.c:331
denial_create
denial_type * denial_create(zone_type *zoneptr, ldns_rdf *dname)
Definition denial.c:48
denial_diff
void denial_diff(denial_type *denial)
Definition denial.c:246
denial_nsecify
void denial_nsecify(denial_type *denial, denial_type *nxt, uint32_t *num_added)
Definition denial.c:295
denial_add_rr
void denial_add_rr(denial_type *denial, ldns_rr *rr)
Definition denial.c:259
domain.h
nsec3params.h
rrset.h
denial_struct
Definition denial.h:50
denial_struct::node
ldns_rbnode_t * node
Definition denial.h:53
denial_struct::nxt_changed
unsigned nxt_changed
Definition denial.h:57
denial_struct::bitmap_changed
unsigned bitmap_changed
Definition denial.h:56
denial_struct::zone
zone_type * zone
Definition denial.h:51
denial_struct::domain
domain_type * domain
Definition denial.h:52
denial_struct::dname
ldns_rdf * dname
Definition denial.h:54
denial_struct::rrset
rrset_type * rrset
Definition denial.h:55
domain_struct
Definition domain.h:52
rrset_struct
Definition rrset.h:59
zone_struct
Definition zone.h:60