OpenDNSSEC-signer
1.4.5
Main Page
Data Structures
Files
File List
Globals
signer
src
adapter
addns.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 NLNet Labs. All rights reserved.
3
*
4
* Redistribution and use in source and binary forms, with or without
5
* modification, are permitted provided that the following conditions
6
* are met:
7
* 1. Redistributions of source code must retain the above copyright
8
* notice, this list of conditions and the following disclaimer.
9
* 2. Redistributions in binary form must reproduce the above copyright
10
* notice, this list of conditions and the following disclaimer in the
11
* documentation and/or other materials provided with the distribution.
12
*
13
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
17
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
19
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
21
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
23
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
*
25
*/
26
32
#ifndef ADAPTER_ADDNS_H
33
#define ADAPTER_ADDNS_H
34
35
#include "config.h"
36
#include "
shared/allocator.h
"
37
#include "
shared/status.h
"
38
#include "
wire/acl.h
"
39
#include "
wire/tsig.h
"
40
41
#include <ldns/ldns.h>
42
#include <stdio.h>
43
#include <time.h>
44
49
typedef
struct
dnsin_struct
dnsin_type
;
50
struct
dnsin_struct
{
51
allocator_type
*
allocator
;
52
acl_type
*
request_xfr
;
53
acl_type
*
allow_notify
;
54
tsig_type
*
tsig
;
55
time_t
last_modified
;
56
};
57
62
typedef
struct
dnsout_struct
dnsout_type
;
63
struct
dnsout_struct
{
64
allocator_type
*
allocator
;
65
acl_type
*
provide_xfr
;
66
acl_type
*
do_notify
;
67
tsig_type
*
tsig
;
68
time_t
last_modified
;
69
};
70
76
dnsin_type
*
dnsin_create
(
void
);
77
83
dnsout_type
*
dnsout_create
(
void
);
84
93
ods_status
dnsin_update
(
dnsin_type
** addns,
const
char
* filename,
94
time_t* last_mod);
95
104
ods_status
dnsout_update
(
dnsout_type
** addns,
const
char
* filename,
105
time_t* last_mod);
106
119
ldns_rr*
addns_read_rr
(FILE* fd,
char
* line, ldns_rdf** orig, ldns_rdf** prev,
120
uint32_t* ttl, ldns_status* status,
unsigned
int
* l);
121
122
129
ods_status
addns_read
(
void
* zone);
130
137
ods_status
addns_write
(
void
* zone);
138
144
void
dnsin_cleanup
(
dnsin_type
* addns);
145
151
void
dnsout_cleanup
(
dnsout_type
* addns);
152
153
#endif
/* ADAPTER_ADDNS_H */
Generated on Tue Jul 22 2014 00:37:52 for OpenDNSSEC-signer by
1.8.1.2