OpenDNSSEC-enforcer
1.4.9
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "ksm/database.h"
#include "ksm/database_statement.h"
#include "ksm/datetime.h"
#include "ksm/db_fields.h"
#include "ksm/debug.h"
#include "ksm/kmedef.h"
#include "ksm/ksmdef.h"
#include "ksm/ksm.h"
#include "ksm/ksm_internal.h"
#include "ksm/message.h"
#include "ksm/string_util.h"
Go to the source code of this file.
Functions | |
int | KsmParameterInit (DB_RESULT *result, const char *name, const char *category, int policy_id) |
int | KsmParameterExist (DB_RESULT *result, const char *name, const char *category, int *parameter_id) |
int | KsmParameter (DB_RESULT result, KSM_PARAMETER *data) |
void | KsmParameterEnd (DB_RESULT result) |
int | KsmParameterValue (const char *name, const char *category, int *value, int policy_id, int *parameter_id) |
int | KsmCollectionInit (KSM_PARCOLL *data) |
void | KsmParameterCollectionCache (int enable) |
int | KsmParameterCollection (KSM_PARCOLL *data, int policy_id) |
int | KsmParameterSet (const char *name, const char *category, int value, int policy_id) |
int | KsmParameterShow (const char *name, const char *category, int policy_id) |
int KsmCollectionInit | ( | KSM_PARCOLL * | data | ) |
Definition at line 338 of file ksm_parameter.c.
References KSM_PARCOLL::clockskew, KSM_PARCOLL::ksklife, KSM_PARCOLL::kskpropdelay, KSM_PARCOLL::kskttl, KSM_INVARG, KSM_PAR_CLOCKSKEW, KSM_PAR_KSKLIFE, KSM_PAR_KSKPROPDELAY, KSM_PAR_KSKTTL, KSM_PAR_PROPDELAY, KSM_PAR_PUBSAFETY, KSM_PAR_REGDELAY, KSM_PAR_RETSAFETY, KSM_PAR_REVOKE, KSM_PAR_RFC5011, KSM_PAR_SIGNINT, KSM_PAR_SOAMIN, KSM_PAR_SOATTL, KSM_PAR_STANDBYKSKS, KSM_PAR_STANDBYZSKS, KSM_PAR_ZSKLIFE, KSM_PAR_ZSKSIGLIFE, KSM_PAR_ZSKTTL, MsgLog(), KSM_PARCOLL::propdelay, KSM_PARCOLL::pub_safety, KSM_PARCOLL::regdelay, KSM_PARCOLL::ret_safety, KSM_PARCOLL::revoke, KSM_PARCOLL::rfc5011, KSM_PARCOLL::signint, KSM_PARCOLL::soamin, KSM_PARCOLL::soattl, KSM_PARCOLL::standbyksks, KSM_PARCOLL::standbyzsks, KSM_PARCOLL::zsklife, KSM_PARCOLL::zsksiglife, and KSM_PARCOLL::zskttl.
Referenced by ChangeKeyState(), KsmUpdate(), MarkDSSeen(), RetireOldKey(), and RevokeOldKey().
int KsmParameter | ( | DB_RESULT | result, |
KSM_PARAMETER * | data | ||
) |
Definition at line 188 of file ksm_parameter.c.
References KSM_PARAMETER::category, DB_PARAMETER_CATEGORY, DB_PARAMETER_ID, DB_PARAMETER_NAME, DB_PARAMETER_VALUE, DbFetchRow(), DbFreeRow(), DbInt(), DbStringBuffer(), KSM_INVARG, MsgLog(), KSM_PARAMETER::name, KSM_PARAMETER::parameter_id, and KSM_PARAMETER::value.
Referenced by cmd_addzone(), cmd_import(), cmd_rollzone(), KsmParameterShow(), KsmParameterValue(), and update_zones().
int KsmParameterCollection | ( | KSM_PARCOLL * | data, |
int | policy_id | ||
) |
Definition at line 400 of file ksm_parameter.c.
References KSM_PARCOLL::clockskew, KSM_PARCOLL::dsttl, KSM_PARCOLL::ksklife, KSM_PARCOLL::kskmanroll, KSM_PARCOLL::kskpropdelay, KSM_PARCOLL::kskroll, KSM_PARCOLL::kskttl, KSM_INVARG, KSM_PAR_CLOCKSKEW_CAT, KSM_PAR_CLOCKSKEW_STRING, KSM_PAR_DSTTL_CAT, KSM_PAR_DSTTL_STRING, KSM_PAR_KSK_MAN_ROLL_CAT, KSM_PAR_KSK_MAN_ROLL_STRING, KSM_PAR_KSKLIFE_CAT, KSM_PAR_KSKLIFE_STRING, KSM_PAR_KSKPROPDELAY_CAT, KSM_PAR_KSKPROPDELAY_STRING, KSM_PAR_KSKTTL_CAT, KSM_PAR_KSKTTL_STRING, KSM_PAR_PROPDELAY_CAT, KSM_PAR_PROPDELAY_STRING, KSM_PAR_PUBSAFETY_CAT, KSM_PAR_PUBSAFETY_STRING, KSM_PAR_REGDELAY_CAT, KSM_PAR_REGDELAY_STRING, KSM_PAR_RETSAFETY_CAT, KSM_PAR_RETSAFETY_STRING, KSM_PAR_REVOKE_CAT, KSM_PAR_REVOKE_STRING, KSM_PAR_RFC5011_CAT, KSM_PAR_RFC5011_STRING, KSM_PAR_SIGNINT_CAT, KSM_PAR_SIGNINT_STRING, KSM_PAR_SOAMIN_CAT, KSM_PAR_SOAMIN_STRING, KSM_PAR_SOATTL_CAT, KSM_PAR_SOATTL_STRING, KSM_PAR_STANDBYKSKS_CAT, KSM_PAR_STANDBYKSKS_STRING, KSM_PAR_STANDBYZSKS_CAT, KSM_PAR_STANDBYZSKS_STRING, KSM_PAR_ZSK_MAN_ROLL_CAT, KSM_PAR_ZSK_MAN_ROLL_STRING, KSM_PAR_ZSKLIFE_CAT, KSM_PAR_ZSKLIFE_STRING, KSM_PAR_ZSKSIGLIFE_CAT, KSM_PAR_ZSKSIGLIFE_STRING, KSM_PAR_ZSKTTL_CAT, KSM_PAR_ZSKTTL_STRING, KSM_ROLL_DEFAULT, KsmParameterValue(), MsgLog(), KSM_PARCOLL::propdelay, KSM_PARCOLL::pub_safety, KSM_PARCOLL::regdelay, KSM_PARCOLL::ret_safety, KSM_PARCOLL::revoke, KSM_PARCOLL::rfc5011, KSM_PARCOLL::signint, KSM_PARCOLL::soamin, KSM_PARCOLL::soattl, KSM_PARCOLL::standbyksks, KSM_PARCOLL::standbyzsks, KSM_PARCOLL::zsklife, KSM_PARCOLL::zskmanroll, KSM_PARCOLL::zsksiglife, and KSM_PARCOLL::zskttl.
Referenced by allocateKeysToZone(), ChangeKeyState(), KsmKeyCountStillGood(), KsmKeyPredict(), KsmRequestKeysByType(), KsmUpdate(), MarkDSSeen(), RetireOldKey(), and RevokeOldKey().
void KsmParameterCollectionCache | ( | int | enable | ) |
Definition at line 390 of file ksm_parameter.c.
Referenced by server_main().
void KsmParameterEnd | ( | DB_RESULT | result | ) |
Definition at line 239 of file ksm_parameter.c.
References DbFreeResult().
Referenced by cmd_addzone(), cmd_import(), cmd_rollzone(), KsmParameterShow(), KsmPolicyRead(), and update_zones().
int KsmParameterExist | ( | DB_RESULT * | result, |
const char * | name, | ||
const char * | category, | ||
int * | parameter_id | ||
) |
Definition at line 133 of file ksm_parameter.c.
References DB_PARAMETER_ID, DB_PARAMETER_LIST_FIELDS, DbExecuteSql(), DbFetchRow(), DbFreeRow(), DbHandle(), DbInt(), DQS_COMPARE_EQ, DqsConditionString(), DqsFree(), DqsOrderBy(), and DqsSpecifyInit().
Referenced by KsmParameterValue().
int KsmParameterInit | ( | DB_RESULT * | result, |
const char * | name, | ||
const char * | category, | ||
int | policy_id | ||
) |
Definition at line 83 of file ksm_parameter.c.
References DB_PARAMETER_VIEW_FIELDS, DbExecuteSql(), DbHandle(), DQS_COMPARE_EQ, DqsConditionInt(), DqsConditionString(), DqsFree(), DqsOrderBy(), and DqsSpecifyInit().
Referenced by cmd_addzone(), cmd_import(), cmd_rollzone(), KsmParameterShow(), KsmParameterValue(), and update_zones().
int KsmParameterSet | ( | const char * | name, |
const char * | category, | ||
int | value, | ||
int | policy_id | ||
) |
Definition at line 519 of file ksm_parameter.c.
References DbExecuteSqlNoResult(), DbHandle(), DisAppendInt(), DisEnd(), DisFree(), DisInit(), DQS_COMPARE_EQ, DusConditionInt(), DusEnd(), DusFree(), DusInit(), DusSetInt(), and KsmParameterValue().
Referenced by SetParamOnPolicy(), and update_policies().
int KsmParameterShow | ( | const char * | name, |
const char * | category, | ||
int | policy_id | ||
) |
Definition at line 575 of file ksm_parameter.c.
References KSM_PARAMETER::category, DtSecondsInterval(), KsmParameter(), KsmParameterEnd(), KsmParameterInit(), KsmParameterValue(), KSM_PARAMETER::name, StrTrimR(), and KSM_PARAMETER::value.
int KsmParameterValue | ( | const char * | name, |
const char * | category, | ||
int * | value, | ||
int | policy_id, | ||
int * | parameter_id | ||
) |
Definition at line 276 of file ksm_parameter.c.
References DbFreeResult(), KME_NOSUCHPAR, KSM_INVARG, KsmParameter(), KsmParameterExist(), KsmParameterInit(), MsgLog(), KSM_PARAMETER::parameter_id, and KSM_PARAMETER::value.
Referenced by cmd_exportkeys(), KsmParameterCollection(), KsmParameterSet(), KsmParameterShow(), ListDS(), and NewDSSet().