OpenDNSSEC-signer  1.4.3
signconf.h
Go to the documentation of this file.
1 /*
2  * $Id: signconf.h 7354 2013-10-09 12:36:03Z 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 */
65  ldns_rr_type nsec_type;
67  uint32_t nsec3_algo;
68  uint32_t nsec3_iterations;
69  const char* nsec3_salt;
71  /* Keys */
74  /* Source of authority */
77  const char* soa_serial;
78  /* Other useful information */
79  const char* filename;
80  time_t last_modified;
81 };
82 
89 
98 ods_status signconf_update(signconf_type** signconf, const char* scfile,
99  time_t last_modified);
100 
108 void signconf_backup(FILE* fd, signconf_type* sc, const char* version);
109 
117 
126 
134 void signconf_print(FILE* out, signconf_type* sc, const char* name);
135 
142 void signconf_log(signconf_type* sc, const char* name);
143 
150 
151 #endif /* SIGNER_SIGNCONF_H */
uint32_t nsec3_iterations
Definition: signconf.h:68
void signconf_cleanup(signconf_type *sc)
Definition: signconf.c:566
duration_type * sig_inception_offset
Definition: signconf.h:62
duration_type * soa_min
Definition: signconf.h:76
const char * nsec3_salt
Definition: signconf.h:69
const char * soa_serial
Definition: signconf.h:77
signconf_type * signconf_create(void)
Definition: signconf.c:49
keylist_type * keys
Definition: signconf.h:73
duration_type * soa_ttl
Definition: signconf.h:75
duration_type * sig_validity_default
Definition: signconf.h:59
duration_type * sig_validity_denial
Definition: signconf.h:60
duration_type * nsec3param_ttl
Definition: signconf.h:64
void signconf_print(FILE *out, signconf_type *sc, const char *name)
Definition: signconf.c:398
enum ods_enum_status ods_status
Definition: status.h:91
ldns_rr_type nsec_type
Definition: signconf.h:65
task_id signconf_compare_denial(signconf_type *a, signconf_type *b)
Definition: signconf.c:365
enum task_id_enum task_id
Definition: task.h:50
duration_type * sig_refresh_interval
Definition: signconf.h:58
ods_status signconf_update(signconf_type **signconf, const char *scfile, time_t last_modified)
Definition: signconf.c:163
void signconf_backup(FILE *fd, signconf_type *sc, const char *version)
Definition: signconf.c:224
const char * name
Definition: signconf.h:54
time_t last_modified
Definition: signconf.h:80
uint32_t nsec3_algo
Definition: signconf.h:67
nsec3params_type * nsec3params
Definition: signconf.h:70
allocator_type * allocator
Definition: signconf.h:55
duration_type * dnskey_ttl
Definition: signconf.h:72
ods_status signconf_check(signconf_type *signconf)
Definition: signconf.c:285
duration_type * sig_jitter
Definition: signconf.h:61
duration_type * sig_resign_interval
Definition: signconf.h:57
void signconf_log(signconf_type *sc, const char *name)
Definition: signconf.c:490
const char * filename
Definition: signconf.h:79
int nsec3_optout
Definition: signconf.h:66