OpenDNSSEC-signer
1.4.1
Main Page
Data Structures
Files
File List
Globals
signer
src
signer
namedb.h
Go to the documentation of this file.
1
/*
2
* $Id: namedb.h 5465 2011-08-23 14:39:28Z matthijs $
3
*
4
* Copyright (c) 2009 NLNet Labs. All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
*
27
*/
28
34
#ifndef SIGNER_NAMEDB_H
35
#define SIGNER_NAMEDB_H
36
37
#include "config.h"
38
#include "
signer/denial.h
"
39
#include "
signer/domain.h
"
40
#include "
signer/nsec3params.h
"
41
42
#include <ldns/ldns.h>
43
48
typedef
struct
namedb_struct
namedb_type
;
49
struct
namedb_struct
{
50
void
*
zone
;
51
ldns_rbtree_t*
domains
;
52
ldns_rbtree_t*
denials
;
53
uint32_t
inbserial
;
54
uint32_t
intserial
;
55
uint32_t
outserial
;
56
uint32_t
altserial
;
57
unsigned
is_initialized
: 1;
58
unsigned
is_processed
: 1;
59
unsigned
serial_updated
: 1;
60
unsigned
force_serial
: 1;
61
};
62
68
void
namedb_init_denials
(
namedb_type
* db);
69
76
namedb_type
*
namedb_create
(
void
* zone);
77
87
ods_status
namedb_update_serial
(
namedb_type
* db,
const
char
* zone_name,
88
const
char
* format, uint32_t inbound_serial);
89
98
ods_status
namedb_domain_entize
(
namedb_type
* db,
domain_type
* domain,
99
ldns_rdf* apex);
100
108
domain_type
*
namedb_lookup_domain
(
namedb_type
* db, ldns_rdf* dname);
109
117
domain_type
*
namedb_add_domain
(
namedb_type
* db, ldns_rdf* dname);
118
126
domain_type
*
namedb_del_domain
(
namedb_type
* db,
domain_type
* domain);
127
135
denial_type
*
namedb_lookup_denial
(
namedb_type
* db, ldns_rdf* dname);
136
145
denial_type
*
namedb_add_denial
(
namedb_type
* db, ldns_rdf* dname,
146
nsec3params_type
* n3p);
147
155
denial_type
*
namedb_del_denial
(
namedb_type
* db,
denial_type
* denial);
156
163
ods_status
namedb_examine
(
namedb_type
* db);
164
172
void
namedb_diff
(
namedb_type
* db,
unsigned
is_ixfr,
unsigned
more_coming);
173
180
void
namedb_rollback
(
namedb_type
* db,
unsigned
keepsc);
181
188
void
namedb_nsecify
(
namedb_type
* db, uint32_t* num_added);
189
197
void
namedb_export
(FILE* fd,
namedb_type
* db,
ods_status
* status);
198
204
void
namedb_wipe_denial
(
namedb_type
* db);
205
211
void
namedb_cleanup_denials
(
namedb_type
* db);
212
218
void
namedb_cleanup
(
namedb_type
* db);
219
226
void
namedb_backup2
(FILE* fd,
namedb_type
* db);
227
228
#endif
/* SIGNER_NAMEDB_H */
Generated on Wed Jul 17 2013 07:14:23 for OpenDNSSEC-signer by
1.8.4