OpenDNSSEC-signer
1.4.1
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 6215 2012-03-20 13:30:51Z 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
#include "
signer/nsec3params.h
"
42
43
#include <ldns/ldns.h>
44
#include <time.h>
45
46
51
typedef
struct
signconf_struct
signconf_type
;
52
struct
signconf_struct
{
53
/* Zone */
54
const
char
*
name
;
55
allocator_type
*
allocator
;
56
/* Signatures */
57
duration_type
*
sig_resign_interval
;
58
duration_type
*
sig_refresh_interval
;
59
duration_type
*
sig_validity_default
;
60
duration_type
*
sig_validity_denial
;
61
duration_type
*
sig_jitter
;
62
duration_type
*
sig_inception_offset
;
63
/* Denial of existence */
64
ldns_rr_type
nsec_type
;
65
int
nsec3_optout
;
66
uint32_t
nsec3_algo
;
67
uint32_t
nsec3_iterations
;
68
const
char
*
nsec3_salt
;
69
nsec3params_type
*
nsec3params
;
70
/* Keys */
71
duration_type
*
dnskey_ttl
;
72
keylist_type
*
keys
;
73
/* Source of authority */
74
duration_type
*
soa_ttl
;
75
duration_type
*
soa_min
;
76
const
char
*
soa_serial
;
77
/* Other useful information */
78
const
char
*
filename
;
79
time_t
last_modified
;
80
};
81
87
signconf_type
*
signconf_create
(
void
);
88
97
ods_status
signconf_update
(
signconf_type
** signconf,
const
char
* scfile,
98
time_t last_modified);
99
107
void
signconf_backup
(FILE* fd,
signconf_type
* sc,
const
char
* version);
108
115
ods_status
signconf_check
(
signconf_type
* signconf);
116
124
task_id
signconf_compare_denial
(
signconf_type
* a,
signconf_type
* b);
125
133
void
signconf_print
(FILE* out,
signconf_type
* sc,
const
char
* name);
134
141
void
signconf_log
(
signconf_type
* sc,
const
char
* name);
142
148
void
signconf_cleanup
(
signconf_type
* sc);
149
150
#endif
/* SIGNER_SIGNCONF_H */
Generated on Wed Jul 17 2013 07:14:23 for OpenDNSSEC-signer by
1.8.4