OpenDNSSEC-signer
2.1.6
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 "status.h"
37
#include "
wire/acl.h
"
38
#include "
wire/tsig.h
"
39
40
#include <ldns/ldns.h>
41
#include <stdio.h>
42
#include <time.h>
43
48
typedef
struct
dnsin_struct
dnsin_type
;
49
struct
dnsin_struct
{
50
acl_type
*
request_xfr
;
51
acl_type
*
allow_notify
;
52
tsig_type
*
tsig
;
53
time_t
last_modified
;
54
};
55
60
typedef
struct
dnsout_struct
dnsout_type
;
61
struct
dnsout_struct
{
62
acl_type
*
provide_xfr
;
63
acl_type
*
do_notify
;
64
tsig_type
*
tsig
;
65
time_t
last_modified
;
66
};
67
73
dnsin_type
*
dnsin_create
(
void
);
74
80
dnsout_type
*
dnsout_create
(
void
);
81
90
ods_status
dnsin_update
(
dnsin_type
** addns,
const
char
* filename,
91
time_t* last_mod);
92
101
ods_status
dnsout_update
(
dnsout_type
** addns,
const
char
* filename,
102
time_t* last_mod);
103
116
ldns_rr*
addns_read_rr
(FILE* fd,
char
* line, ldns_rdf** orig, ldns_rdf** prev,
117
uint32_t* ttl, ldns_status* status,
unsigned
int
* l);
118
119
126
ods_status
addns_read
(
void
* zone);
127
134
ods_status
addns_write
(
void
* zone);
135
141
void
dnsin_cleanup
(
dnsin_type
* addns);
142
148
void
dnsout_cleanup
(
dnsout_type
* addns);
149
150
#endif
/* ADAPTER_ADDNS_H */
addns_read
ods_status addns_read(void *zone)
Definition:
addns.c:685
dnsin_struct::tsig
tsig_type * tsig
Definition:
addns.h:52
dnsout_struct::tsig
tsig_type * tsig
Definition:
addns.h:64
tsig_struct
Definition:
tsig.h:110
dnsout_update
ods_status dnsout_update(dnsout_type **addns, const char *filename, time_t *last_mod)
Definition:
addns.c:627
dnsout_struct::do_notify
acl_type * do_notify
Definition:
addns.h:63
dnsin_struct
Definition:
addns.h:49
acl.h
dnsin_struct::last_modified
time_t last_modified
Definition:
addns.h:53
acl_struct
Definition:
acl.h:58
tsig.h
addns_read_rr
ldns_rr * addns_read_rr(FILE *fd, char *line, ldns_rdf **orig, ldns_rdf **prev, uint32_t *ttl, ldns_status *status, unsigned int *l)
Definition:
addns.c:62
dnsin_struct::request_xfr
acl_type * request_xfr
Definition:
addns.h:50
dnsout_struct::last_modified
time_t last_modified
Definition:
addns.h:65
dnsout_struct
Definition:
addns.h:61
dnsin_create
dnsin_type * dnsin_create(void)
Definition:
addns.c:502
addns_write
ods_status addns_write(void *zone)
Definition:
addns.c:768
dnsin_cleanup
void dnsin_cleanup(dnsin_type *addns)
Definition:
addns.c:893
dnsin_update
ods_status dnsin_update(dnsin_type **addns, const char *filename, time_t *last_mod)
Definition:
addns.c:568
dnsin_struct::allow_notify
acl_type * allow_notify
Definition:
addns.h:51
dnsout_cleanup
void dnsout_cleanup(dnsout_type *addns)
Definition:
addns.c:910
dnsout_create
dnsout_type * dnsout_create(void)
Definition:
addns.c:518
dnsout_struct::provide_xfr
acl_type * provide_xfr
Definition:
addns.h:62
Generated by
1.8.17