OpenDNSSEC-signer
1.3.9
Main Page
Data Structures
Files
File List
Globals
signer
src
signer
signconf.h
Go to the documentation of this file.
1
/*
2
* $Id: signconf.h 4550 2011-03-11 11:42:01Z 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_SIGNCONF_H
35
#define SIGNER_SIGNCONF_H
36
37
#include "
scheduler/task.h
"
38
#include "
shared/allocator.h
"
39
#include "
shared/duration.h
"
40
#include "
signer/keys.h
"
41
42
#include <ldns/ldns.h>
43
#include <time.h>
44
45
50
typedef
struct
signconf_struct
signconf_type
;
51
struct
signconf_struct
{
52
/* Zone */
53
const
char
*
name
;
54
allocator_type
*
allocator
;
55
/* Signatures */
56
duration_type
*
sig_resign_interval
;
57
duration_type
*
sig_refresh_interval
;
58
duration_type
*
sig_validity_default
;
59
duration_type
*
sig_validity_denial
;
60
duration_type
*
sig_jitter
;
61
duration_type
*
sig_inception_offset
;
62
/* Denial of existence */
63
ldns_rr_type
nsec_type
;
64
int
nsec3_optout
;
65
uint32_t
nsec3_algo
;
66
uint32_t
nsec3_iterations
;
67
const
char
*
nsec3_salt
;
68
/* Keys */
69
duration_type
*
dnskey_ttl
;
70
keylist_type
*
keys
;
71
/* Source of authority */
72
duration_type
*
soa_ttl
;
73
duration_type
*
soa_min
;
74
const
char
*
soa_serial
;
75
/* Other useful information */
76
const
char
*
filename
;
77
time_t
last_modified
;
78
int
audit
;
79
};
80
86
signconf_type
*
signconf_create
(
void
);
87
96
ods_status
signconf_update
(
signconf_type
** signconf,
const
char
* scfile,
97
time_t last_modified);
98
105
signconf_type
*
signconf_recover_from_backup
(
const
char
* filename);
106
113
void
signconf_backup
(FILE* fd,
signconf_type
* sc);
114
121
ods_status
signconf_check
(
signconf_type
* signconf);
122
130
task_id
signconf_compare_denial
(
signconf_type
* a,
signconf_type
* b);
131
140
task_id
signconf_compare_keys
(
signconf_type
* a,
signconf_type
* b,
141
ldns_rr_list* del);
142
150
task_id
signconf_compare
(
signconf_type
* a,
signconf_type
* b);
151
157
void
signconf_cleanup
(
signconf_type
* sc);
158
166
void
signconf_print
(FILE* out,
signconf_type
* sc,
const
char
* name);
167
174
void
signconf_log
(
signconf_type
* sc,
const
char
* name);
175
176
#endif
/* SIGNER_SIGNCONF_H */
Generated on Fri Sep 21 2012 02:26:50 for OpenDNSSEC-signer by
1.8.1.2