OpenDNSSEC-signer
1.4.1
Main Page
Data Structures
Files
File List
Globals
signer
src
adapter
addns.h
Go to the documentation of this file.
1
/*
2
* $Id: addns.h 5867 2011-11-17 11:18:08Z 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 ADAPTER_ADDNS_H
35
#define ADAPTER_ADDNS_H
36
37
#include "config.h"
38
#include "
shared/allocator.h
"
39
#include "
shared/status.h
"
40
#include "
wire/acl.h
"
41
#include "
wire/tsig.h
"
42
43
#include <ldns/ldns.h>
44
#include <stdio.h>
45
#include <time.h>
46
51
typedef
struct
dnsin_struct
dnsin_type
;
52
struct
dnsin_struct
{
53
allocator_type
*
allocator
;
54
acl_type
*
request_xfr
;
55
acl_type
*
allow_notify
;
56
tsig_type
*
tsig
;
57
time_t
last_modified
;
58
};
59
64
typedef
struct
dnsout_struct
dnsout_type
;
65
struct
dnsout_struct
{
66
allocator_type
*
allocator
;
67
acl_type
*
provide_xfr
;
68
acl_type
*
do_notify
;
69
tsig_type
*
tsig
;
70
time_t
last_modified
;
71
};
72
78
dnsin_type
*
dnsin_create
(
void
);
79
85
dnsout_type
*
dnsout_create
(
void
);
86
95
ods_status
dnsin_update
(
dnsin_type
** addns,
const
char
* filename,
96
time_t* last_mod);
97
106
ods_status
dnsout_update
(
dnsout_type
** addns,
const
char
* filename,
107
time_t* last_mod);
108
121
ldns_rr*
addns_read_rr
(FILE* fd,
char
* line, ldns_rdf** orig, ldns_rdf** prev,
122
uint32_t* ttl, ldns_status* status,
unsigned
int
* l);
123
124
131
ods_status
addns_read
(
void
* zone);
132
139
ods_status
addns_write
(
void
* zone);
140
146
void
dnsin_cleanup
(
dnsin_type
* addns);
147
153
void
dnsout_cleanup
(
dnsout_type
* addns);
154
155
#endif
/* ADAPTER_ADDNS_H */
Generated on Wed Jul 17 2013 07:14:23 for OpenDNSSEC-signer by
1.8.4