OpenDNSSEC-signer  1.4.1
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 
53  /* Zone */
54  const char* name;
56  /* Signatures */
63  /* Denial of existence */
64  ldns_rr_type nsec_type;
66  uint32_t nsec3_algo;
67  uint32_t nsec3_iterations;
68  const char* nsec3_salt;
70  /* Keys */
73  /* Source of authority */
76  const char* soa_serial;
77  /* Other useful information */
78  const char* filename;
79  time_t last_modified;
80 };
81 
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 
116 
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 
149 
150 #endif /* SIGNER_SIGNCONF_H */
signconf_type * signconf_create(void)
Definition: signconf.c:49
uint32_t nsec3_iterations
Definition: signconf.h:67
duration_type * sig_inception_offset
Definition: signconf.h:62
task_id signconf_compare_denial(signconf_type *a, signconf_type *b)
Definition: signconf.c:363
void signconf_backup(FILE *fd, signconf_type *sc, const char *version)
Definition: signconf.c:222
duration_type * soa_min
Definition: signconf.h:75
ods_status signconf_check(signconf_type *sc)
Definition: signconf.c:283
const char * nsec3_salt
Definition: signconf.h:68
const char * soa_serial
Definition: signconf.h:76
keylist_type * keys
Definition: signconf.h:72
duration_type * soa_ttl
Definition: signconf.h:74
duration_type * sig_validity_default
Definition: signconf.h:59
void signconf_cleanup(signconf_type *sc)
Definition: signconf.c:542
duration_type * sig_validity_denial
Definition: signconf.h:60
enum ods_enum_status ods_status
Definition: status.h:89
ldns_rr_type nsec_type
Definition: signconf.h:64
void signconf_print(FILE *out, signconf_type *sc, const char *name)
Definition: signconf.c:394
enum task_id_enum task_id
Definition: task.h:50
duration_type * sig_refresh_interval
Definition: signconf.h:58
const char * name
Definition: signconf.h:54
time_t last_modified
Definition: signconf.h:79
uint32_t nsec3_algo
Definition: signconf.h:66
nsec3params_type * nsec3params
Definition: signconf.h:69
allocator_type * allocator
Definition: signconf.h:55
duration_type * dnskey_ttl
Definition: signconf.h:71
void signconf_log(signconf_type *sc, const char *name)
Definition: signconf.c:481
duration_type * sig_jitter
Definition: signconf.h:61
duration_type * sig_resign_interval
Definition: signconf.h:57
const char * filename
Definition: signconf.h:78
ods_status signconf_update(signconf_type **signconf, const char *scfile, time_t last_modified)
Definition: signconf.c:161
int nsec3_optout
Definition: signconf.h:65