OpenDNSSEC-enforcer
2.0.4
|
#include "config.h"
#include <time.h>
#include "libhsm.h"
#include "hsmkey/hsm_key_factory.h"
#include <libhsmdns.h>
#include <ldns/ldns.h>
#include "duration.h"
#include "log.h"
#include "daemon/engine.h"
#include "db/zone.h"
#include "db/policy.h"
#include "db/policy_key.h"
#include "db/hsm_key.h"
#include "db/key_data.h"
#include "db/key_dependency.h"
#include "db/db_error.h"
#include "enforcer/enforcer.h"
Go to the source code of this file.
Data Structures | |
struct | future_key |
Macros | |
#define | HIDDEN KEY_STATE_STATE_HIDDEN |
#define | RUMOURED KEY_STATE_STATE_RUMOURED |
#define | OMNIPRESENT KEY_STATE_STATE_OMNIPRESENT |
#define | UNRETENTIVE KEY_STATE_STATE_UNRETENTIVE |
#define | NA KEY_STATE_STATE_NA |
#define | NOKEY_TIMEOUT 60 |
Functions | |
time_t | update (engine_type *engine, db_connection_t *dbconn, zone_t *zone, policy_t *policy, time_t now, int *zone_updated) |
#define HIDDEN KEY_STATE_STATE_HIDDEN |
Definition at line 66 of file enforcer.c.
#define NA KEY_STATE_STATE_NA |
Definition at line 70 of file enforcer.c.
#define NOKEY_TIMEOUT 60 |
When no key available wait this many seconds before asking again.
Definition at line 75 of file enforcer.c.
#define OMNIPRESENT KEY_STATE_STATE_OMNIPRESENT |
Definition at line 68 of file enforcer.c.
#define RUMOURED KEY_STATE_STATE_RUMOURED |
Definition at line 67 of file enforcer.c.
#define UNRETENTIVE KEY_STATE_STATE_UNRETENTIVE |
Definition at line 69 of file enforcer.c.
time_t update | ( | engine_type * | engine, |
db_connection_t * | dbconn, | ||
zone_t * | zone, | ||
policy_t * | policy, | ||
time_t | now, | ||
int * | zone_updated | ||
) |
Does any required work for a zone and its policy.
Does any required work for a zone and its policy. insert new keys, check state of current keys and trashes old ones. Returns the earliest time at which this zone needs attention. When no further attention is needed return -1; Another date in the past simply means ASAP. The function MAY be called again for this zone sooner than indicated. This is however pointless unless some external event happened that influenced this zone/policy/keys.
[in] | zone | |
[in] | now | |
[in] | keyfactory |
Definition at line 2719 of file enforcer.c.
References future_key::key, and ods_log_error().