OpenDNSSEC-signer 2.1.13
|
#include <time.h>
#include "daemon/engine.h"
#include "scheduler/worker.h"
#include "scheduler/schedule.h"
#include "signertasks.h"
#include "duration.h"
#include "hsm.h"
#include "locks.h"
#include "util.h"
#include "log.h"
#include "status.h"
#include "signer/tools.h"
#include "signer/zone.h"
Go to the source code of this file.
Functions | |
void | drudge (worker_type *worker) |
time_t | do_readsignconf (task_type *task, const char *zonename, void *zonearg, void *contextarg) |
time_t | do_forcereadsignconf (task_type *task, const char *zonename, void *zonearg, void *contextarg) |
time_t | do_signzone (task_type *task, const char *zonename, void *zonearg, void *contextarg) |
time_t | do_readzone (task_type *task, const char *zonename, void *zonearg, void *contextarg) |
time_t | do_forcereadzone (task_type *task, const char *zonename, void *zonearg, void *contextarg) |
time_t | do_writezone (task_type *task, const char *zonename, void *zonearg, void *contextarg) |
time_t do_forcereadsignconf | ( | task_type * | task, |
const char * | zonename, | ||
void * | zonearg, | ||
void * | contextarg | ||
) |
Definition at line 239 of file signertasks.c.
References worker_context::engine, zone_struct::name, engine_struct::taskq, tools_signconf(), zone_struct::zone_lock, and zone_struct::zoneconfigvalid.
time_t do_forcereadzone | ( | task_type * | task, |
const char * | zonename, | ||
void * | zonearg, | ||
void * | contextarg | ||
) |
Definition at line 408 of file signertasks.c.
References worker_context::engine, signconf_struct::last_modified, zone_struct::name, signconf_struct::sig_resign_interval, zone_struct::signconf, signconf_struct::soa_serial, engine_struct::taskq, tools_input(), and zone_struct::zone_lock.
time_t do_readsignconf | ( | task_type * | task, |
const char * | zonename, | ||
void * | zonearg, | ||
void * | contextarg | ||
) |
Definition at line 209 of file signertasks.c.
References worker_context::engine, signconf_struct::last_modified, zone_struct::name, zone_struct::signconf, engine_struct::taskq, tools_signconf(), zone_struct::zone_lock, and zone_struct::zoneconfigvalid.
time_t do_readzone | ( | task_type * | task, |
const char * | zonename, | ||
void * | zonearg, | ||
void * | contextarg | ||
) |
Definition at line 352 of file signertasks.c.
References worker_context::engine, signconf_struct::last_modified, zone_struct::name, signconf_struct::sig_resign_interval, zone_struct::signconf, signconf_struct::soa_serial, engine_struct::taskq, tools_input(), and zone_struct::zone_lock.
time_t do_signzone | ( | task_type * | task, |
const char * | zonename, | ||
void * | zonearg, | ||
void * | contextarg | ||
) |
Definition at line 268 of file signertasks.c.
References worker_context::clock_in, worker_context::engine, zone_struct::name, engine_struct::need_to_reload, stats_struct::sig_count, signconf_struct::sig_resign_interval, stats_struct::sig_reuse, stats_struct::sig_soa_count, stats_struct::sig_time, engine_struct::signal_cond, engine_struct::signal_lock, zone_struct::signconf, worker_context::signq, signconf_struct::soa_serial, stats_struct::start_time, zone_struct::stats, stats_struct::stats_lock, engine_struct::taskq, worker_context::worker, zone_struct::zone_lock, zone_prepare_keys(), and zone_update_serial().
time_t do_writezone | ( | task_type * | task, |
const char * | zonename, | ||
void * | zonearg, | ||
void * | contextarg | ||
) |
Definition at line 457 of file signertasks.c.
References worker_context::clock_in, worker_context::engine, zone_struct::name, signconf_struct::sig_resign_interval, zone_struct::signconf, engine_struct::taskq, tools_output(), worker_context::worker, zone_backup2(), and zone_struct::zone_lock.
void drudge | ( | worker_type * | worker | ) |
Apparently the queue is empty. Wait until new work is queued. The drudger will release the signq lock while sleeping and will automatically grab the lock when the threshold is reached. Threshold is at 1 and MAX (after a number of tries).
Definition at line 152 of file signertasks.c.
References worker_context::clock_in, worker_context::engine, engine_struct::need_to_reload, rrset_sign(), engine_struct::signal_cond, engine_struct::signal_lock, worker_context::signq, engine_struct::taskq, and worker_context::worker.