OpenDNSSEC-signer 1.3.0
|
#include "parser/confparser.h"
#include "parser/signconfparser.h"
#include "scheduler/task.h"
#include "shared/duration.h"
#include "shared/file.h"
#include "shared/hsm.h"
#include "shared/log.h"
#include "signer/backup.h"
#include "shared/status.h"
#include "signer/keys.h"
#include "signer/signconf.h"
Go to the source code of this file.
Functions | |
signconf_type * | signconf_create (void) |
ods_status | signconf_update (signconf_type **signconf, const char *scfile, time_t last_modified) |
signconf_type * | signconf_recover_from_backup (const char *filename) |
void | signconf_backup (FILE *fd, signconf_type *sc) |
ods_status | signconf_check (signconf_type *sc) |
task_id | signconf_compare_denial (signconf_type *a, signconf_type *b) |
task_id | signconf_compare_keys (signconf_type *a, signconf_type *b, ldns_rr_list *del) |
task_id | signconf_compare (signconf_type *a, signconf_type *b) |
void | signconf_cleanup (signconf_type *sc) |
void | signconf_print (FILE *out, signconf_type *sc, const char *name) |
void | signconf_log (signconf_type *sc, const char *name) |
void signconf_backup | ( | FILE * | fd, |
signconf_type * | sc | ||
) |
Backup signconf values.
Definition at line 295 of file signconf.c.
References signconf_struct::audit, signconf_struct::dnskey_ttl, signconf_struct::last_modified, signconf_struct::nsec_type, ods_log_assert, signconf_struct::sig_inception_offset, signconf_struct::sig_jitter, signconf_struct::sig_refresh_interval, signconf_struct::sig_resign_interval, signconf_struct::sig_validity_default, signconf_struct::sig_validity_denial, signconf_struct::soa_min, signconf_struct::soa_serial, and signconf_struct::soa_ttl.
Referenced by zone_backup().
ods_status signconf_check | ( | signconf_type * | sc | ) |
Check signer configuration settings.
Definition at line 350 of file signconf.c.
References keylist_struct::count, signconf_struct::dnskey_ttl, signconf_struct::keys, signconf_struct::nsec3_algo, signconf_struct::nsec_type, ods_log_error(), ODS_STATUS_CFG_ERR, ODS_STATUS_OK, signconf_struct::sig_inception_offset, signconf_struct::sig_jitter, signconf_struct::sig_refresh_interval, signconf_struct::sig_resign_interval, signconf_struct::sig_validity_default, signconf_struct::sig_validity_denial, signconf_struct::soa_min, signconf_struct::soa_serial, and signconf_struct::soa_ttl.
Referenced by signconf_update().
void signconf_cleanup | ( | signconf_type * | sc | ) |
Clean up signer configuration.
Definition at line 585 of file signconf.c.
References signconf_struct::allocator, allocator_cleanup(), allocator_deallocate(), signconf_struct::dnskey_ttl, duration_cleanup(), signconf_struct::filename, keylist_cleanup(), signconf_struct::keys, signconf_struct::nsec3_salt, signconf_struct::sig_inception_offset, signconf_struct::sig_jitter, signconf_struct::sig_refresh_interval, signconf_struct::sig_resign_interval, signconf_struct::sig_validity_default, signconf_struct::sig_validity_denial, signconf_struct::soa_min, signconf_struct::soa_serial, and signconf_struct::soa_ttl.
Referenced by signconf_recover_from_backup(), signconf_update(), zone_cleanup(), zone_load_signconf(), and zone_recover().
task_id signconf_compare | ( | signconf_type * | a, |
signconf_type * | b | ||
) |
Compare signer configurations.
Definition at line 564 of file signconf.c.
References signconf_compare_denial(), signconf_compare_keys(), and TASK_NONE.
task_id signconf_compare_denial | ( | signconf_type * | a, |
signconf_type * | b | ||
) |
Compare signer configurations on denial of existence material.
Definition at line 431 of file signconf.c.
References signconf_struct::nsec3_algo, signconf_struct::nsec3_iterations, signconf_struct::nsec3_optout, signconf_struct::nsec3_salt, signconf_struct::nsec_type, ods_log_assert, ods_strcmp(), TASK_NONE, and TASK_NSECIFY.
Referenced by signconf_compare(), and zone_load_signconf().
task_id signconf_compare_keys | ( | signconf_type * | a, |
signconf_type * | b, | ||
ldns_rr_list * | del | ||
) |
Compare signer configurations on key material.
Keys in ka and kb with the same locator, have been compared when checking for deleted keys.
Definition at line 460 of file signconf.c.
References key_struct::algorithm, key_struct::dnskey, signconf_struct::dnskey_ttl, duration_compare(), keylist_struct::first_key, key_struct::flags, key_struct::hsmkey, keylist_lookup(), signconf_struct::keys, key_struct::ksk, lhsm_get_key(), key_struct::locator, key_struct::next, ods_log_assert, ods_log_error(), ODS_STATUS_OK, key_struct::publish, TASK_NONE, TASK_READ, TASK_SIGNCONF, and key_struct::zsk.
Referenced by signconf_compare(), and zone_load_signconf().
signconf_type* signconf_create | ( | void | ) |
Create a new signer configuration with the 'empty' settings.
Definition at line 54 of file signconf.c.
References signconf_struct::allocator, allocator_alloc(), allocator_cleanup(), allocator_create(), signconf_struct::audit, signconf_struct::dnskey_ttl, signconf_struct::filename, signconf_struct::keys, signconf_struct::last_modified, signconf_struct::nsec3_algo, signconf_struct::nsec3_iterations, signconf_struct::nsec3_optout, signconf_struct::nsec3_salt, signconf_struct::nsec_type, ods_log_assert, ods_log_error(), signconf_struct::sig_inception_offset, signconf_struct::sig_jitter, signconf_struct::sig_refresh_interval, signconf_struct::sig_resign_interval, signconf_struct::sig_validity_default, signconf_struct::sig_validity_denial, signconf_struct::soa_min, signconf_struct::soa_serial, and signconf_struct::soa_ttl.
Referenced by signconf_recover_from_backup(), signconf_update(), zone_create(), and zone_recover().
void signconf_log | ( | signconf_type * | sc, |
const char * | name | ||
) |
Log sign configuration.
Definition at line 726 of file signconf.c.
References signconf_struct::audit, signconf_struct::dnskey_ttl, duration2string(), keylist_log(), signconf_struct::keys, signconf_struct::nsec3_algo, signconf_struct::nsec3_iterations, signconf_struct::nsec3_optout, signconf_struct::nsec3_salt, signconf_struct::nsec_type, ods_log_debug(), ods_log_info(), signconf_struct::sig_inception_offset, signconf_struct::sig_jitter, signconf_struct::sig_refresh_interval, signconf_struct::sig_resign_interval, signconf_struct::sig_validity_default, signconf_struct::sig_validity_denial, signconf_struct::soa_min, signconf_struct::soa_serial, and signconf_struct::soa_ttl.
Referenced by zone_load_signconf().
void signconf_print | ( | FILE * | out, |
signconf_type * | sc, | ||
const char * | name | ||
) |
Print sign configuration.
Definition at line 617 of file signconf.c.
References signconf_struct::audit, signconf_struct::dnskey_ttl, duration2string(), keylist_print(), signconf_struct::keys, signconf_struct::nsec3_algo, signconf_struct::nsec3_iterations, signconf_struct::nsec3_optout, signconf_struct::nsec3_salt, signconf_struct::nsec_type, signconf_struct::sig_inception_offset, signconf_struct::sig_jitter, signconf_struct::sig_refresh_interval, signconf_struct::sig_resign_interval, signconf_struct::sig_validity_default, signconf_struct::sig_validity_denial, signconf_struct::soa_min, signconf_struct::soa_serial, and signconf_struct::soa_ttl.
signconf_type* signconf_recover_from_backup | ( | const char * | filename | ) |
Read a signer configuration from backup.
Definition at line 213 of file signconf.c.
References signconf_struct::audit, backup_read_check_str(), backup_read_duration(), backup_read_int(), backup_read_rr_type(), backup_read_str(), backup_read_time_t(), signconf_struct::dnskey_ttl, signconf_struct::filename, signconf_struct::last_modified, signconf_struct::nsec_type, ods_fclose(), ods_fopen(), ods_log_debug(), ods_log_error(), signconf_struct::sig_inception_offset, signconf_struct::sig_jitter, signconf_struct::sig_refresh_interval, signconf_struct::sig_resign_interval, signconf_struct::sig_validity_default, signconf_struct::sig_validity_denial, signconf_cleanup(), signconf_create(), signconf_struct::soa_min, signconf_struct::soa_serial, and signconf_struct::soa_ttl.
ods_status signconf_update | ( | signconf_type ** | signconf, |
const char * | scfile, | ||
time_t | last_modified | ||
) |
Update signer configuration.
Definition at line 160 of file signconf.c.
References signconf_struct::last_modified, ods_file_lastmodified(), ods_log_assert, ods_log_error(), ods_status2str(), ODS_STATUS_CFG_ERR, ODS_STATUS_ERR, ODS_STATUS_OK, ODS_STATUS_UNCHANGED, signconf_check(), signconf_cleanup(), and signconf_create().
Referenced by zone_load_signconf().