|
OpenDNSSEC-enforcer
1.3.9
|
#include <stdio.h>#include <limits.h>#include "ksm/database.h"#include "ksm/db_fields.h"#include "ksm/debug.h"#include "ksm/ksm.h"#include "ksm/kmedef.h"#include "ksm/ksmdef.h"#include "ksm/message.h"
Go to the source code of this file.
Macros | |
| #define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
| #define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
Functions | |
| int | KsmUpdate (int policy_id, int zone_id) |
| void | KsmUpdateKey (KSM_KEYDATA *data, KSM_PARCOLL *collection, int zone_id) |
| void | KsmUpdateGenerateKeyTime (KSM_KEYDATA *data) |
| void | KsmUpdatePublishKeyTime (KSM_KEYDATA *data, KSM_PARCOLL *collection, int zone_id) |
| void | KsmUpdateReadyKeyTime (KSM_KEYDATA *data) |
| void | KsmUpdateActiveKeyTime (KSM_KEYDATA *data, KSM_PARCOLL *collection, int zone_id) |
| void | KsmUpdateRetireKeyTime (KSM_KEYDATA *data, KSM_PARCOLL *collection, int zone_id) |
| void | KsmUpdateDeadKeyTime (KSM_KEYDATA *data) |
| void | KsmUpdateDSPublishKeyTime (KSM_KEYDATA *data, KSM_PARCOLL *collection, int zone_id) |
| void | KsmUpdateKEYPublishKeyTime (KSM_KEYDATA *data, KSM_PARCOLL *collection, int zone_id) |
| int | KsmUpdateKeyTime (const KSM_KEYDATA *data, const char *source, const char *destination, int interval, int zone_id) |
| #define MAX | ( | a, | |
| b | |||
| ) | ((a) > (b) ? (a) : (b)) |
Definition at line 54 of file ksm_update.c.
| #define MIN | ( | a, | |
| b | |||
| ) | ((a) < (b) ? (a) : (b)) |
Definition at line 55 of file ksm_update.c.
| int KsmUpdate | ( | int | policy_id, |
| int | zone_id | ||
| ) |
Definition at line 72 of file ksm_update.c.
References DQS_QUERY_CONDITION::code, DQS_QUERY_CONDITION::compare, DQS_QUERY_CONDITION::data, DB_KEYDATA_ZONE_ID, DQS_COMPARE_EQ, DQS_END_OF_LIST, KsmCollectionInit(), KsmKey(), KsmKeyEnd(), KsmKeyInit(), KsmParameterCollection(), KsmUpdateKey(), and DQS_QUERY_CONDITION::number.
Referenced by KsmRequestKeys().
| void KsmUpdateActiveKeyTime | ( | KSM_KEYDATA * | data, |
| KSM_PARCOLL * | collection, | ||
| int | zone_id | ||
| ) |
Definition at line 325 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::fixedDate, KSM_KEYDATA::keypair_id, KSM_KEYDATA::keytype, KSM_PARCOLL::ksklife, KSM_INVARG, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmUpdateKeyTime(), MsgLog(), and KSM_PARCOLL::zsklife.
Referenced by KsmUpdateKey().
| void KsmUpdateDeadKeyTime | ( | KSM_KEYDATA * | data | ) |
Definition at line 428 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::keypair_id, KSM_INVARG, and MsgLog().
Referenced by KsmUpdateKey().
| void KsmUpdateDSPublishKeyTime | ( | KSM_KEYDATA * | data, |
| KSM_PARCOLL * | collection, | ||
| int | zone_id | ||
| ) |
Definition at line 447 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::keypair_id, KSM_KEYDATA::keytype, KSM_PARCOLL::kskpropdelay, KSM_PARCOLL::kskttl, KSM_INVARG, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmUpdateKeyTime(), MsgLog(), and KSM_PARCOLL::pub_safety.
Referenced by KsmUpdateKey().
| void KsmUpdateGenerateKeyTime | ( | KSM_KEYDATA * | data | ) |
Definition at line 223 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::keypair_id, KSM_INVARG, and MsgLog().
Referenced by KsmUpdateKey().
| void KsmUpdateKey | ( | KSM_KEYDATA * | data, |
| KSM_PARCOLL * | collection, | ||
| int | zone_id | ||
| ) |
Definition at line 152 of file ksm_update.c.
References KSM_KEYDATA::keypair_id, KME_UNRKEYSTA, KSM_INVARG, KSM_STATE_ACTIVE, KSM_STATE_DEAD, KSM_STATE_DSPUBLISH, KSM_STATE_DSREADY, KSM_STATE_DSSUB, KSM_STATE_GENERATE, KSM_STATE_KEYPUBLISH, KSM_STATE_PUBLISH, KSM_STATE_READY, KSM_STATE_RETIRE, KsmUpdateActiveKeyTime(), KsmUpdateDeadKeyTime(), KsmUpdateDSPublishKeyTime(), KsmUpdateGenerateKeyTime(), KsmUpdateKEYPublishKeyTime(), KsmUpdatePublishKeyTime(), KsmUpdateReadyKeyTime(), KsmUpdateRetireKeyTime(), MsgLog(), and KSM_KEYDATA::state.
Referenced by KsmUpdate().
| void KsmUpdateKEYPublishKeyTime | ( | KSM_KEYDATA * | data, |
| KSM_PARCOLL * | collection, | ||
| int | zone_id | ||
| ) |
Definition at line 493 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::keypair_id, KSM_INVARG, KsmUpdateKeyTime(), MsgLog(), KSM_PARCOLL::propdelay, KSM_PARCOLL::pub_safety, and KSM_PARCOLL::zskttl.
Referenced by KsmUpdateKey().
| int KsmUpdateKeyTime | ( | const KSM_KEYDATA * | data, |
| const char * | source, | ||
| const char * | destination, | ||
| int | interval, | ||
| int | zone_id | ||
| ) |
Definition at line 557 of file ksm_update.c.
References DbExecuteSqlNoResult(), DbHandle(), KSM_KEYDATA::keypair_id, KME_BUFFEROVF, KSM_INVARG, KSM_SQL_SIZE, and MsgLog().
Referenced by KsmUpdateActiveKeyTime(), KsmUpdateDSPublishKeyTime(), KsmUpdateKEYPublishKeyTime(), KsmUpdatePublishKeyTime(), and KsmUpdateRetireKeyTime().
| void KsmUpdatePublishKeyTime | ( | KSM_KEYDATA * | data, |
| KSM_PARCOLL * | collection, | ||
| int | zone_id | ||
| ) |
Definition at line 241 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::keypair_id, KSM_KEYDATA::keytype, KSM_PARCOLL::kskpropdelay, KSM_PARCOLL::kskroll, KSM_PARCOLL::kskttl, KSM_INVARG, KSM_ROLL_DNSKEY, KSM_ROLL_DS, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmUpdateKeyTime(), MsgLog(), KSM_PARCOLL::propdelay, KSM_PARCOLL::pub_safety, and KSM_PARCOLL::zskttl.
Referenced by KsmUpdateKey().
| void KsmUpdateReadyKeyTime | ( | KSM_KEYDATA * | data | ) |
Definition at line 307 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::keypair_id, KSM_INVARG, and MsgLog().
Referenced by KsmUpdateKey().
| void KsmUpdateRetireKeyTime | ( | KSM_KEYDATA * | data, |
| KSM_PARCOLL * | collection, | ||
| int | zone_id | ||
| ) |
Definition at line 375 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_PARCOLL::dsttl, KSM_KEYDATA::keypair_id, KSM_KEYDATA::keytype, KSM_PARCOLL::kskpropdelay, KSM_INVARG, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmUpdateKeyTime(), MsgLog(), KSM_PARCOLL::propdelay, KSM_PARCOLL::ret_safety, and KSM_PARCOLL::zsksiglife.
Referenced by KsmUpdateKey().
1.8.1.2