OpenDNSSEC-signer  1.3.14
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 
52  /* Zone */
53  const char* name;
55  /* Signatures */
62  /* Denial of existence */
63  ldns_rr_type nsec_type;
65  uint32_t nsec3_algo;
66  uint32_t nsec3_iterations;
67  const char* nsec3_salt;
68  /* Keys */
71  /* Source of authority */
74  const char* soa_serial;
75  /* Other useful information */
76  const char* filename;
77  time_t last_modified;
78  int audit;
79 };
80 
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 
122 
131 
141  ldns_rr_list* del);
142 
151 
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 */