signconf.h
Go to the documentation of this file.
/*
* Copyright (c) 2009 NLNet Labs. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef SIGNER_SIGNCONF_H
#define SIGNER_SIGNCONF_H
#include <ldns/ldns.h>
#include <time.h>
typedef struct signconf_struct signconf_type;
#include "scheduler/task.h"
#include "status.h"
#include "duration.h"
#include "signer/keys.h"
#include "signer/nsec3params.h"
struct signconf_struct {
/* Zone */
const char* name;
int passthrough;
/* Signatures */
duration_type* sig_resign_interval;
duration_type* sig_refresh_interval;
duration_type* sig_validity_default;
duration_type* sig_validity_denial;
duration_type* sig_validity_keyset;
duration_type* sig_jitter;
duration_type* sig_inception_offset;
/* Denial of existence */
duration_type* nsec3param_ttl;
ldns_rr_type nsec_type;
int nsec3_optout;
uint32_t nsec3_algo;
uint32_t nsec3_iterations;
const char* nsec3_salt;
nsec3params_type* nsec3params;
/* Keys */
duration_type* dnskey_ttl;
const char** dnskey_signature; /* may be NULL and must be NULL terminated */
keylist_type* keys;
/* Source of authority */
duration_type* soa_ttl;
duration_type* soa_min;
const char* soa_serial;
/* Other useful information */
duration_type* max_zone_ttl;
const char* filename;
time_t last_modified;
};
signconf_type* signconf_create(void);
ods_status signconf_update(signconf_type** signconf, const char* scfile,
time_t last_modified);
void signconf_backup(FILE* fd, signconf_type* sc, const char* version);
ods_status signconf_check(signconf_type* signconf);
task_id signconf_compare_denial(signconf_type* a, signconf_type* b);
void signconf_log(signconf_type* sc, const char* name);
void signconf_cleanup(signconf_type* sc);
#endif /* SIGNER_SIGNCONF_H */
signconf_struct::nsec3_iterations
uint32_t nsec3_iterations
Definition: signconf.h:58
signconf_cleanup
void signconf_cleanup(signconf_type *sc)
Definition: signconf.c:470
signconf_struct::sig_inception_offset
duration_type * sig_inception_offset
Definition: signconf.h:52
signconf_struct::soa_min
duration_type * soa_min
Definition: signconf.h:67
signconf_struct::nsec3_salt
const char * nsec3_salt
Definition: signconf.h:59
signconf_struct::soa_serial
const char * soa_serial
Definition: signconf.h:68
signconf_create
signconf_type * signconf_create(void)
Definition: signconf.c:47
signconf_struct::keys
keylist_type * keys
Definition: signconf.h:64
signconf_struct::soa_ttl
duration_type * soa_ttl
Definition: signconf.h:66
signconf_struct::sig_validity_default
duration_type * sig_validity_default
Definition: signconf.h:48
signconf_struct::sig_validity_denial
duration_type * sig_validity_denial
Definition: signconf.h:49
signconf_struct::nsec3param_ttl
duration_type * nsec3param_ttl
Definition: signconf.h:54
signconf_struct::passthrough
int passthrough
Definition: signconf.h:44
signconf_struct
Definition: signconf.h:41
signconf_struct::nsec_type
ldns_rr_type nsec_type
Definition: signconf.h:55
signconf_compare_denial
task_id signconf_compare_denial(signconf_type *a, signconf_type *b)
Definition: signconf.c:355
keylist_struct
Definition: keys.h:66
signconf_struct::sig_refresh_interval
duration_type * sig_refresh_interval
Definition: signconf.h:47
signconf_update
ods_status signconf_update(signconf_type **signconf, const char *scfile, time_t last_modified)
Definition: signconf.c:154
signconf_struct::sig_validity_keyset
duration_type * sig_validity_keyset
Definition: signconf.h:50
signconf_struct::dnskey_signature
const char ** dnskey_signature
Definition: signconf.h:63
signconf_struct::max_zone_ttl
duration_type * max_zone_ttl
Definition: signconf.h:70
signconf_backup
void signconf_backup(FILE *fd, signconf_type *sc, const char *version)
Definition: signconf.c:214
signconf_struct::name
const char * name
Definition: signconf.h:43
signconf_struct::last_modified
time_t last_modified
Definition: signconf.h:72
signconf_struct::nsec3_algo
uint32_t nsec3_algo
Definition: signconf.h:57
signconf_struct::nsec3params
nsec3params_type * nsec3params
Definition: signconf.h:60
nsec3params_struct
Definition: nsec3params.h:47
signconf_struct::dnskey_ttl
duration_type * dnskey_ttl
Definition: signconf.h:62
signconf_check
ods_status signconf_check(signconf_type *signconf)
Definition: signconf.c:275
keys.h
signconf_struct::sig_jitter
duration_type * sig_jitter
Definition: signconf.h:51
signconf_struct::sig_resign_interval
duration_type * sig_resign_interval
Definition: signconf.h:46
nsec3params.h
signconf_log
void signconf_log(signconf_type *sc, const char *name)
Definition: signconf.c:388
signconf_struct::filename
const char * filename
Definition: signconf.h:71
signconf_struct::nsec3_optout
int nsec3_optout
Definition: signconf.h:56