OpenDNSSEC-enforcer
1.4.10
|
Go to the source code of this file.
Data Structures | |
struct | KSM_KEYDATA |
struct | KSM_PARAMETER |
struct | KSM_SIGNER_POLICY |
struct | KSM_SIGNATURE_POLICY |
struct | KSM_DENIAL_POLICY |
struct | KSM_COMMON_KEY_POLICY |
struct | KSM_KEY_POLICY |
struct | KSM_ENFORCER_POLICY |
struct | KSM_ZONE_POLICY |
struct | KSM_PARENT_POLICY |
struct | KSM_POLICY |
struct | KSM_POLICY_PARAMETER |
struct | KSM_ZONE |
struct | KSM_PARCOLL |
Macros | |
#define | KSM_NULL_ID ((KSM_ID) -1) /* General invalid ID */ |
#define | KSM_NAME_LENGTH 256 /* Includes trailing NULL */ |
#define | KSM_MSG_LENGTH 512 /* Includes trailing NULL */ |
#define | KSM_PATH_LENGTH 4096 /* Includes trailing NULL */ |
#define | KSM_POLICY_DESC_LENGTH 256 /* Includes trailing NULL */ |
#define | KSM_TIME_LENGTH 32 /* Includes trailing NULL */ |
#define | KSM_SQL_SIZE 1024 /* Max size of SQL statement */ |
#define | KSM_INT_STR_SIZE 32 /* Max size of int as string */ |
#define | KSM_SALT_LENGTH 512 /* Includes trailing NULL */ |
#define | KSM_ZONE_NAME_LENGTH 256 /* Includes trailing NULL */ |
#define | KSM_ADAPTER_NAME_LENGTH 512 /* Includes trailing NULL */ |
#define | RFC5011_ADD_HOLDDOWN_TIME (30*24*3600) /* seconds to prepublish KSK for 5011 */ |
#define | RFC5011_REM_HOLDDOWN_TIME (30*24*3600) /* seconds to postpublish KSK for 5011 */ |
#define | KEYDATA_M_ID 0x0001 |
#define | KEYDATA_M_STATE 0x0002 |
#define | KEYDATA_M_KEYTYPE 0x0004 |
#define | KEYDATA_M_ALGORITHM 0x0008 |
#define | KEYDATA_M_SIGLIFETIME 0x0010 |
#define | KEYDATA_M_ACTIVE 0x0020 |
#define | KEYDATA_M_DEAD 0x0040 |
#define | KEYDATA_M_GENERATE 0x0080 |
#define | KEYDATA_M_PUBLISH 0x0100 |
#define | KEYDATA_M_READY 0x0200 |
#define | KEYDATA_M_RETIRE 0x0400 |
#define | KEYDATA_M_LOCATION 0x0800 |
#define | KEYDATA_M_SIZE 0x1000 |
#define | KEYDATA_M_SMID 0x2000 |
#define | KEYDATA_M_TIMES |
#define | UNSIGNED 0 |
#define | SIGNED 1 |
#define | KSM_ALGORITHM_RSAMD5 1 |
#define | KSM_ALGORITHM_RSAMD5_STRING "rsamd5" |
#define | KSM_ALGORITHM_DH 2 |
#define | KSM_ALGORITHM_DH_STRING "dh" |
#define | KSM_ALGORITHM_DSASHA1 3 |
#define | KSM_ALGORITHM_DSASHA1_STRING "dsa" |
#define | KSM_ALGORITHM_RSASHA1 5 |
#define | KSM_ALGORITHM_RSASHA1_STRING "rsasha1" |
#define | KSM_ALGORITHM_DSA_NSEC3_SHA1 6 |
#define | KSM_ALGORITHM_DSA_NSEC3_SHA1_STRING "dsa-nsec3-sha1" |
#define | KSM_ALGORITHM_RSASHA1_NSEC3_SHA1 7 |
#define | KSM_ALGORITHM_RSASHA1_NSEC3_SHA1_STRING "rsasha1-nsec3-sha1" |
#define | KSM_ALGORITHM_RSASHA256 8 |
#define | KSM_ALGORITHM_RSASHA256_STRING "rsasha256" |
#define | KSM_ALGORITHM_RSASHA512 10 |
#define | KSM_ALGORITHM_RSASHA512_STRING "rsasha512" |
#define | KSM_ALGORITHM_INDIRECT 252 |
#define | KSM_ALGORITHM_INDIRECT_STRING "indirect" |
#define | KSM_ALGORITHM_PRIVDOM 253 |
#define | KSM_ALGORITHM_PRIVDOM_STRING "domain" |
#define | KSM_ALGORITHM_PRIVOID 254 |
#define | KSM_ALGORITHM_PRIVOID_STRING "oid" |
#define | KSM_FORMAT_FILE 1 |
#define | KSM_FORMAT_FILE_STRING "file" |
#define | KSM_FORMAT_HSM 2 |
#define | KSM_FORMAT_HSM_STRING "hsm" |
#define | KSM_FORMAT_URI 3 |
#define | KSM_FORMAT_URI_STRING "uri" |
#define | KSM_TYPE_KSK 257 |
#define | KSM_TYPE_KSK_STRING "ksk" |
#define | KSM_TYPE_ZSK 256 |
#define | KSM_TYPE_ZSK_STRING "zsk" |
#define | KSM_FLAG_REVOKE 0x80 |
#define | KSM_STATE_GENERATE 1 |
#define | KSM_STATE_GENERATE_STRING "generate" |
#define | KSM_STATE_PUBLISH 2 |
#define | KSM_STATE_PUBLISH_STRING "publish" |
#define | KSM_STATE_READY 3 |
#define | KSM_STATE_READY_STRING "ready" |
#define | KSM_STATE_ACTIVE 4 |
#define | KSM_STATE_ACTIVE_STRING "active" |
#define | KSM_STATE_RETIRE 5 |
#define | KSM_STATE_RETIRE_STRING "retire" |
#define | KSM_STATE_DEAD 6 |
#define | KSM_STATE_DEAD_STRING "dead" |
#define | KSM_STATE_DSSUB 7 |
#define | KSM_STATE_DSSUB_STRING "dssub" |
#define | KSM_STATE_DSPUBLISH 8 |
#define | KSM_STATE_DSPUBLISH_STRING "dspublish" |
#define | KSM_STATE_DSREADY 9 |
#define | KSM_STATE_DSREADY_STRING "dsready" |
#define | KSM_STATE_KEYPUBLISH 10 |
#define | KSM_STATE_KEYPUBLISH_STRING "keypublish" |
#define | KSM_SERIAL_UNIX_STRING "unixtime" |
#define | KSM_SERIAL_UNIX 1 |
#define | KSM_SERIAL_COUNTER_STRING "counter" |
#define | KSM_SERIAL_COUNTER 2 |
#define | KSM_SERIAL_DATE_STRING "datecounter" |
#define | KSM_SERIAL_DATE 3 |
#define | KSM_SERIAL_KEEP_STRING "keep" |
#define | KSM_SERIAL_KEEP 4 |
#define | KSM_KEYS_NOT_SHARED 0 |
#define | KSM_KEYS_SHARED 1 |
#define | KSM_ROLL_DEFAULT 1 /* DoubleDNSKEY */ |
#define | KSM_ROLL_DNSKEY_STRING "DoubleDNSKey" |
#define | KSM_ROLL_DNSKEY 1 |
#define | KSM_ROLL_DS_STRING "DoubleDS" |
#define | KSM_ROLL_DS 2 |
#define | KSM_ROLL_RRSET_STRING "DoubleRRSet" |
#define | KSM_ROLL_RRSET 3 |
#define | KSM_PAR_CLOCKSKEW 3600 /* 1 hour */ |
#define | KSM_PAR_CLOCKSKEW_STRING "clockskew" |
#define | KSM_PAR_CLOCKSKEW_CAT "signature" |
#define | KSM_PAR_KSKLIFE 63072000 /* 2 years */ |
#define | KSM_PAR_KSKLIFE_STRING "lifetime" |
#define | KSM_PAR_KSKLIFE_CAT "ksk" |
#define | KSM_PAR_PROPDELAY 3600 /* 1 hour */ |
#define | KSM_PAR_PROPDELAY_STRING "propagationdelay" |
#define | KSM_PAR_PROPDELAY_CAT "zone" |
#define | KSM_PAR_STANDBYKSKS 1 |
#define | KSM_PAR_STANDBYKSKS_STRING "standby" |
#define | KSM_PAR_STANDBYKSKS_CAT "ksk" |
#define | KSM_PAR_STANDBYZSKS 1 |
#define | KSM_PAR_STANDBYZSKS_STRING "standby" |
#define | KSM_PAR_STANDBYZSKS_CAT "zsk" |
#define | KSM_PAR_SIGNINT 7200 /* 2 hours */ |
#define | KSM_PAR_SIGNINT_STRING "resign" |
#define | KSM_PAR_SIGNINT_CAT "signature" |
#define | KSM_PAR_SOAMIN 7200 /* 2 hours */ |
#define | KSM_PAR_SOAMIN_STRING "min" |
#define | KSM_PAR_SOAMIN_CAT "zone" |
#define | KSM_PAR_SOATTL 172800 /* 2 days */ |
#define | KSM_PAR_SOATTL_STRING "ttl" |
#define | KSM_PAR_SOATTL_CAT "zone" |
#define | KSM_PAR_ZSKSIGLIFE 432000 /* 5 days */ |
#define | KSM_PAR_ZSKSIGLIFE_STRING "valdefault" |
#define | KSM_PAR_ZSKSIGLIFE_CAT "signature" |
#define | KSM_PAR_ZSKLIFE 2592000 /* 30 days */ |
#define | KSM_PAR_ZSKLIFE_STRING "lifetime" |
#define | KSM_PAR_ZSKLIFE_CAT "zsk" |
#define | KSM_PAR_ZSKTTL 172800 /* 2 days */ |
#define | KSM_PAR_ZSKTTL_STRING "ttl" |
#define | KSM_PAR_ZSKTTL_CAT "keys" |
#define | KSM_PAR_KSKTTL 172800 /* 2 days */ |
#define | KSM_PAR_KSKTTL_STRING "ttl" |
#define | KSM_PAR_KSKTTL_CAT "keys" |
#define | KSM_PAR_KSKPROPDELAY 3600 /* 1 hour */ |
#define | KSM_PAR_KSKPROPDELAY_STRING "propagationdelay" |
#define | KSM_PAR_KSKPROPDELAY_CAT "parent" |
#define | KSM_PAR_REGDELAY 0 /* TODO sort this out */ |
#define | KSM_PAR_REGDELAY_STRING "registrationdelay" /* TODO sort this out */ |
#define | KSM_PAR_REGDELAY_CAT "parent" /* TODO sort this out */ |
#define | KSM_PAR_PUBSAFETY 172800 /* 2 days */ |
#define | KSM_PAR_PUBSAFETY_STRING "publishsafety" |
#define | KSM_PAR_PUBSAFETY_CAT "keys" |
#define | KSM_PAR_RETSAFETY 172800 /* 2 days */ |
#define | KSM_PAR_RETSAFETY_STRING "retiresafety" |
#define | KSM_PAR_RETSAFETY_CAT "keys" |
#define | KSM_PAR_KSK_MAN_ROLL 0 /* false (i.e. automatic roll) */ |
#define | KSM_PAR_KSK_MAN_ROLL_STRING "manual_rollover" |
#define | KSM_PAR_KSK_MAN_ROLL_CAT "ksk" |
#define | KSM_PAR_ZSK_MAN_ROLL 0 /* false (i.e. automatic roll) */ |
#define | KSM_PAR_ZSK_MAN_ROLL_STRING "manual_rollover" |
#define | KSM_PAR_ZSK_MAN_ROLL_CAT "zsk" |
#define | KSM_PAR_DSTTL 3600 |
#define | KSM_PAR_DSTTL_STRING "ttlds" |
#define | KSM_PAR_DSTTL_CAT "parent" |
#define | KSM_PAR_KSK_ROLL 0 |
#define | KSM_PAR_KSK_ROLL_STRING "rollover_scheme" |
#define | KSM_PAR_KSK_ROLL_CAT "ksk" |
#define | KSM_PAR_RFC5011 0 |
#define | KSM_PAR_RFC5011_STRING "rfc5011" |
#define | KSM_PAR_RFC5011_CAT "ksk" |
#define | KSM_PAR_REVOKE 0 |
#define | KSM_PAR_REVOKE_STRING "revoked" |
#define | KSM_PAR_REVOKE_CAT "ksk" |
Typedefs | |
typedef int | KSM_ID |
typedef int(* | KSM_REQUEST_CALLBACK) (void *context, KSM_KEYDATA *key) |
Functions | |
int | KsmInit (void) |
int | KsmRundown (void) |
int | KsmKeyPairCreate (int policy_id, const char *HSMKeyID, int smID, int size, int alg, const char *generate, DB_ID *id) |
int | KsmDnssecKeyCreate (int zone_id, int keypair_id, int keytype, int state, int rfc5011, const char *time, const char *retTime, DB_ID *id) |
int | KsmKeyInitSql (DB_RESULT *result, const char *sql) |
int | KsmKeyInit (DB_RESULT *result, DQS_QUERY_CONDITION *condition) |
int | KsmKeyInitId (DB_RESULT *result, DB_ID id) |
int | KsmKey (DB_RESULT result, KSM_KEYDATA *data) |
void | KsmKeyEnd (DB_RESULT result) |
int | KsmKeyQuery (const char *sql, DB_RESULT *result) |
int | KsmKeyData (DB_ID id, KSM_KEYDATA *data) |
int | KsmKeyPredict (int policy_id, int keytype, int shared_keys, int interval, int *count, int rollover_scheme, int zone_count) |
int | KsmKeyCountQueue (int keytype, int *count, int zone_id) |
int | KsmKeyCountStillGood (int policy_id, int sm, int bits, int algorithm, int interval, const char *datetime, int *count, int keytype) |
int | KsmKeyGetUnallocated (int policy_id, int sm, int bits, int algorithm, int zone_id, int share_keys, int *keypair_id) |
int | KsmMarkKeysAsDead (int zone_id) |
int | KsmKillKey (int keypair_id, int zone_id) |
int | KsmDeleteKeyRange (int minid, int maxid) |
int | KsmDeleteKeyRanges (int limit[], int size) |
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 | KsmParameterSet (const char *name, const char *category, int value, int policy_id) |
int | KsmParameterShow (const char *name, const char *category, int policy_id) |
int | KsmPolicyInit (DB_RESULT *handle, const char *name) |
int | KsmPolicyExists (const char *name) |
int | KsmPolicyParametersInit (DB_RESULT *handle, const char *name) |
int | KsmPolicyRead (KSM_POLICY *policy) |
int | KsmPolicy (DB_RESULT handle, KSM_POLICY *data) |
int | KsmPolicyParameter (DB_RESULT handle, KSM_POLICY_PARAMETER *data) |
int | KsmPolicyReadFromId (KSM_POLICY *policy) |
int | KsmPolicyNameFromId (KSM_POLICY *policy) |
int | KsmPolicyUpdateSalt (KSM_POLICY *policy) |
int | KsmPolicyNullSaltStamp (int policy_id) |
int | KsmPolicyPopulateSMFromIds (KSM_POLICY *policy) |
int | KsmPolicySetIdFromName (KSM_POLICY *policy) |
int | KsmPolicyIdFromZoneId (int zone_id, int *policy_id) |
int | KsmPolicyUpdateDesc (int policy_id, const char *policy_description) |
KSM_POLICY * | KsmPolicyAlloc () |
void | KsmPolicyFree (KSM_POLICY *policy) |
int | KsmZoneInit (DB_RESULT *handle, int policy_id) |
int | KsmZone (DB_RESULT handle, KSM_ZONE *data) |
int | KsmZoneCount (DB_RESULT handle, int *count) |
int | KsmZoneCountInit (DB_RESULT *handle, int id) |
int | KsmZoneIdFromName (const char *zone_name, int *zone_id) |
int | KsmZoneIdAndPolicyFromName (const char *zone_name, int *policy_id, int *zone_id) |
int | KsmDeleteZone (int zone_id) |
int | KsmZoneNameFromId (int zone_id, char **zone_name) |
int | KsmDNSSECKeysInSMCountInit (DB_RESULT *handle, int policy_id) |
int | KsmDNSSECKeysInSMCount (DB_RESULT handle, int *count) |
int | KsmDNSSECKeysStateCountInit (DB_RESULT *result, int policy_id, KSM_KEY_POLICY *key_policy, int state) |
void | KsmPurge (void) |
int | KsmCollectionInit (KSM_PARCOLL *data) |
int | KsmParameterClockskew (KSM_PARCOLL *collection) |
int | KsmParameterKskLifetime (KSM_PARCOLL *collection) |
int | KsmParameterStandbyKSKeys (KSM_PARCOLL *collection) |
int | KsmParameterStandbyZSKeys (KSM_PARCOLL *collection) |
int | KsmParameterPropagationDelay (KSM_PARCOLL *collection) |
int | KsmParameterSigningInterval (KSM_PARCOLL *collection) |
int | KsmParameterSoaMin (KSM_PARCOLL *collection) |
int | KsmParameterSoaTtl (KSM_PARCOLL *collection) |
int | KsmParameterZskLifetime (KSM_PARCOLL *collection) |
int | KsmParameterZskTtl (KSM_PARCOLL *collection) |
int | KsmParameterKskTtl (KSM_PARCOLL *collection) |
int | KsmParameterKskPropagationDelay (KSM_PARCOLL *collection) |
int | KsmParameterRegistrationDelay (KSM_PARCOLL *collection) |
int | KsmParameterPubSafety (KSM_PARCOLL *collection) |
int | KsmParameterRetSafety (KSM_PARCOLL *collection) |
int | KsmParameterInitialPublicationInterval (KSM_PARCOLL *collection) |
int | KsmParameterCollection (KSM_PARCOLL *data, int policy_id) |
int | KsmParameterRfc5011 (KSM_PARCOLL *collection) |
int | KsmParameterRevoke (KSM_PARCOLL *collection) |
void | KsmParameterCollectionCache (int enable) |
int | KsmKeywordAlgorithmNameToValue (const char *name) |
int | KsmKeywordFormatNameToValue (const char *name) |
int | KsmKeywordParameterNameToValue (const char *name) |
int | KsmKeywordStateNameToValue (const char *name) |
int | KsmKeywordTypeNameToValue (const char *name) |
int | KsmKeywordRollNameToValue (const char *name) |
const char * | KsmKeywordAlgorithmValueToName (int value) |
const char * | KsmKeywordFormatValueToName (int value) |
const char * | KsmKeywordStateValueToName (int value) |
const char * | KsmKeywordTypeValueToName (int value) |
const char * | KsmKeywordSerialValueToName (int value) |
const char * | KsmKeywordRollValueToName (int value) |
int | KsmKeywordParameterExists (const char *name) |
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, KSM_PARCOLL *collection, int zone_id) |
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) |
int | KsmRequestKeys (int keytype, int rollover, const char *datetime, KSM_REQUEST_CALLBACK callback, void *context, int policy_id, int zone_id, int run_interval, int *NewDS) |
int | KsmRequestKeysByType (int keytype, int rollover, const char *datetime, KSM_REQUEST_CALLBACK callback, void *context, int policy_id, int zone_id, int run_interval, int *NewDS) |
int | KsmRequestSetActiveExpectedRetire (int keytype, const char *datetime, int zone_id) |
int | KsmRequestChangeStateActiveRetire (int keytype, const char *datetime, int zone_id, int policy_id, int revoke) |
int | KsmRequestChangeStateRetireDead (int keytype, const char *datetime, int zone_id, int policy_id, int rollover_scheme, int *NewDS) |
int | KsmRequestChangeStatePublishReady (int keytype, const char *datetime, int zone_id, int policy_id, int rfc5011, int *NewDS) |
int | KsmRequestChangeStatePublishActive (int keytype, const char *datetime, int zone_id, int policy_id, int *NewDS) |
int | KsmRequestChangeStateReadyActive (int keytype, const char *datetime, int zone_id, int policy_id, int *NewDS) |
int | KsmRequestChangeStateDSPublishDSReady (int keytype, const char *datetime, int zone_id, int policy_id) |
int | KsmRequestChangeState (int keytype, const char *datetime, int src_state, int dst_state, int zone_id, int policy_id, int rollover_scheme, int rfc5011, int revoke, int *NewDS) |
int | KsmRequestChangeStateGeneratePublish (int keytype, const char *datetime, int count, int zone_id) |
int | KsmRequestChangeStateGenerateDSSub (int keytype, const char *datetime, int count, int zone_id) |
int | KsmRequestChangeStateDSReadyKeyPublish (const char *datetime, int zone_id, int policy_id) |
int | KsmRequestChangeStateKeyPublishActive (const char *datetime, int zone_id, int policy_id, int *NewDS) |
int | KsmRequestChangeStateReadyActiveN (int keytype, const char *datetime, int count, int zone_id) |
int | KsmRequestChangeStateN (int keytype, const char *datetime, int count, int src_state, int dst_state, int zone_id) |
int | KsmRequestChangeStateGenerateDSSubConditional (int keytype, const char *datetime, KSM_PARCOLL *collection, int zone_id, int *NewDS) |
int | KsmRequestChangeStateGeneratePublishConditional (int keytype, const char *datetime, KSM_PARCOLL *collection, int zone_id, int run_interval) |
int | KsmRequestPendingRetireCount (int keytype, const char *datetime, KSM_PARCOLL *parameters, int *count, int zone_id, int interval) |
int | KsmRequestAvailableCount (int keytype, const char *datetime, KSM_PARCOLL *parameters, int *count, int zone_id) |
int | KsmRequestGenerateCount (int keytype, int *count, int zone_id) |
int | KsmRequestStandbyKSKCount (int *count, int zone_id) |
int | KsmRequestCheckActiveKey (int keytype, const char *datetime, int *count, int zone_id) |
int | KsmRequestCountReadyKey (int keytype, const char *datetime, int *count, int zone_id) |
int | KsmRequestCheckFirstPass (int keytype, int *first_pass_flag, int zone_id) |
int | KsmRequestCheckCompromisedFlag (int keytype, int zone_id, int *comp_flag) |
int | KsmRequestIssueKeys (int keytype, KSM_REQUEST_CALLBACK callback, void *context, int zone_id) |
int | KsmRequestPrintKey (void *context, KSM_KEYDATA *data) |
int | KsmRequestDNSSECKeys (const char *datetime, KSM_POLICY *policy) |
int | KsmRequestDNSSECKeysChangeStateRetireDead (KSM_KEY_POLICY *policy, const char *datetime, int verify) |
int | KsmRequestDNSSECKeysChangeState (KSM_KEY_POLICY *policy, const char *datetime, int src_state, int dst_state, int verify) |
int | KsmRequestDNSSECKeysChangeStatePublishReady (KSM_KEY_POLICY *policy, const char *datetime, int verify) |
int | KsmRequestDNSSECKeysChangeStateGeneratePublishConditional (KSM_POLICY *policy, KSM_KEY_POLICY *key_policy, const char *datetime, int verify) |
int | KsmRequestDNSSECKeysSetActiveExpectedRetire (int keytype, const char *datetime, int verify) |
int | KsmRequestDNSSECKeysPendingRetireCount (KSM_KEY_POLICY, const char *datetime, int *count) |
int | KsmPolicyClockskew (KSM_SIGNATURE_POLICY *policy) |
int | KsmPolicyKeyLifetime (KSM_KEY_POLICY *policy) |
int | KsmPolicyStandbyKeys (KSM_KEY_POLICY *policy) |
int | KsmPolicyPropagationDelay (KSM_SIGNER_POLICY *policy) |
int | KsmPolicySigningInterval (KSM_PARCOLL *collection) |
int | KsmPolicySoaMin (KSM_SIGNER_POLICY *policy) |
int | KsmPolicySoaTtl (KSM_SIGNER_POLICY *policy) |
int | KsmPolicyZskTtl (KSM_PARCOLL *collection) |
int | KsmPolicyInitialPublicationInterval (KSM_POLICY *policy) |
int | KsmImportRepository (const char *repo_name, const char *repo_capacity, int require_backup) |
int | KsmImportPolicy (const char *policy_name, const char *policy_description) |
int | KsmImportZone (const char *zone_name, int policy_id, int fail_if_exists, int *new_zone, const char *signconf, const char *input, const char *output, const char *input_type, const char *output_type) |
int | KsmImportKeyPair (int policy_id, const char *HSMKeyID, int smID, int size, int alg, int state, const char *time, int fixDate, DB_ID *id) |
int | KsmSmIdFromName (const char *name, int *id) |
int | KsmSerialIdFromName (const char *name, int *id) |
int | KsmPolicyIdFromName (const char *name, int *id) |
int | KsmMarkPreBackup (int repo_id, const char *datetime) |
int | KsmRollbackMarkPreBackup (int repo_id) |
int | KsmMarkBackup (int repo_id, const char *datetime) |
int | KsmCheckHSMkeyID (int repo_id, const char *cka_id, int *exists) |
int | KsmListBackups (int repo_id, int verbose_flag) |
int | KsmListRepos () |
int | KsmListPolicies () |
int | KsmListRollovers (int zone_id, int *ds_count) |
int | KsmCheckNextRollover (int keytype, int zone_id, char **datetime) |
#define KEYDATA_M_TIMES |
#define KSM_ADAPTER_NAME_LENGTH 512 /* Includes trailing NULL */ |
#define KSM_ALGORITHM_RSASHA1_NSEC3_SHA1_STRING "rsasha1-nsec3-sha1" |
#define KSM_FLAG_REVOKE 0x80 |
Definition at line 365 of file ksm.h.
Referenced by commKeyConfig().
#define KSM_INT_STR_SIZE 32 /* Max size of int as string */ |
Definition at line 64 of file ksm.h.
Referenced by CountKeys(), DisAppendInt(), do_purge(), DqsConditionInt(), DusSetInt(), KsmListBackups(), KsmListRollovers(), ListDS(), ListKeys(), NewDSSet(), PurgeKeys(), RetireOldKey(), and RevokeOldKey().
#define KSM_KEYS_NOT_SHARED 0 |
Definition at line 397 of file ksm.h.
Referenced by KsmKeyGetUnallocated(), and KsmKeyPredict().
#define KSM_MSG_LENGTH 512 /* Includes trailing NULL */ |
Definition at line 58 of file ksm.h.
Referenced by update_policies().
#define KSM_NAME_LENGTH 256 /* Includes trailing NULL */ |
Definition at line 57 of file ksm.h.
Referenced by cmd_setup(), get_policy_name_from_id(), kaspSetPolicyDefaults(), KsmPolicy(), KsmPolicyNameFromId(), KsmPolicyPopulateSMFromIds(), and SetPolicyDefaults().
#define KSM_PAR_CLOCKSKEW 3600 /* 1 hour */ |
Definition at line 413 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_CLOCKSKEW_CAT "signature" |
Definition at line 415 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_CLOCKSKEW_STRING "clockskew" |
Definition at line 414 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_DSTTL_CAT "parent" |
Definition at line 469 of file ksm.h.
Referenced by cmd_exportkeys(), and KsmParameterCollection().
#define KSM_PAR_DSTTL_STRING "ttlds" |
Definition at line 468 of file ksm.h.
Referenced by cmd_exportkeys(), and KsmParameterCollection().
#define KSM_PAR_KSK_MAN_ROLL 0 /* false (i.e. automatic roll) */ |
#define KSM_PAR_KSK_MAN_ROLL_CAT "ksk" |
Definition at line 463 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_KSK_MAN_ROLL_STRING "manual_rollover" |
Definition at line 462 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_KSKLIFE 63072000 /* 2 years */ |
Definition at line 416 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_KSKLIFE_CAT "ksk" |
Definition at line 418 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_KSKLIFE_STRING "lifetime" |
Definition at line 417 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_KSKPROPDELAY 3600 /* 1 hour */ |
Definition at line 449 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_KSKPROPDELAY_CAT "parent" |
Definition at line 451 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_KSKPROPDELAY_STRING "propagationdelay" |
Definition at line 450 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_KSKTTL 172800 /* 2 days */ |
Definition at line 446 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_KSKTTL_CAT "keys" |
Definition at line 448 of file ksm.h.
Referenced by cmd_exportkeys(), KsmParameterCollection(), ListDS(), and NewDSSet().
#define KSM_PAR_KSKTTL_STRING "ttl" |
Definition at line 447 of file ksm.h.
Referenced by cmd_exportkeys(), KsmParameterCollection(), ListDS(), and NewDSSet().
#define KSM_PAR_PROPDELAY 3600 /* 1 hour */ |
Definition at line 419 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_PROPDELAY_CAT "zone" |
Definition at line 421 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_PROPDELAY_STRING "propagationdelay" |
Definition at line 420 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_PUBSAFETY 172800 /* 2 days */ |
Definition at line 455 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_PUBSAFETY_CAT "keys" |
Definition at line 457 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_PUBSAFETY_STRING "publishsafety" |
Definition at line 456 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_REGDELAY 0 /* TODO sort this out */ |
Definition at line 452 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_REGDELAY_CAT "parent" /* TODO sort this out */ |
Definition at line 454 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_REGDELAY_STRING "registrationdelay" /* TODO sort this out */ |
Definition at line 453 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_RETSAFETY 172800 /* 2 days */ |
Definition at line 458 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_RETSAFETY_CAT "keys" |
Definition at line 460 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_RETSAFETY_STRING "retiresafety" |
Definition at line 459 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_REVOKE 0 |
Definition at line 476 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_REVOKE_CAT "ksk" |
Definition at line 478 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_REVOKE_STRING "revoked" |
Definition at line 477 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_RFC5011 0 |
Definition at line 473 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_RFC5011_CAT "ksk" |
Definition at line 475 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_RFC5011_STRING "rfc5011" |
Definition at line 474 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_SIGNINT 7200 /* 2 hours */ |
Definition at line 428 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_SIGNINT_CAT "signature" |
Definition at line 430 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_SIGNINT_STRING "resign" |
Definition at line 429 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_SOAMIN 7200 /* 2 hours */ |
Definition at line 431 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_SOAMIN_CAT "zone" |
Definition at line 433 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_SOAMIN_STRING "min" |
Definition at line 432 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_SOATTL 172800 /* 2 days */ |
Definition at line 434 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_SOATTL_CAT "zone" |
Definition at line 436 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_SOATTL_STRING "ttl" |
Definition at line 435 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_STANDBYKSKS 1 |
Definition at line 422 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_STANDBYKSKS_CAT "ksk" |
Definition at line 424 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_STANDBYKSKS_STRING "standby" |
Definition at line 423 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_STANDBYZSKS 1 |
Definition at line 425 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_STANDBYZSKS_CAT "zsk" |
Definition at line 427 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_STANDBYZSKS_STRING "standby" |
Definition at line 426 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_ZSK_MAN_ROLL 0 /* false (i.e. automatic roll) */ |
#define KSM_PAR_ZSK_MAN_ROLL_CAT "zsk" |
Definition at line 466 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_ZSK_MAN_ROLL_STRING "manual_rollover" |
Definition at line 465 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_ZSKLIFE 2592000 /* 30 days */ |
Definition at line 440 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_ZSKLIFE_CAT "zsk" |
Definition at line 442 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_ZSKLIFE_STRING "lifetime" |
Definition at line 441 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_ZSKSIGLIFE 432000 /* 5 days */ |
Definition at line 437 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_ZSKSIGLIFE_CAT "signature" |
Definition at line 439 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_ZSKSIGLIFE_STRING "valdefault" |
Definition at line 438 of file ksm.h.
Referenced by KsmParameterCollection().
#define KSM_PAR_ZSKTTL 172800 /* 2 days */ |
Definition at line 443 of file ksm.h.
Referenced by KsmCollectionInit().
#define KSM_PAR_ZSKTTL_CAT "keys" |
Definition at line 445 of file ksm.h.
Referenced by cmd_exportkeys(), and KsmParameterCollection().
#define KSM_PAR_ZSKTTL_STRING "ttl" |
Definition at line 444 of file ksm.h.
Referenced by cmd_exportkeys(), and KsmParameterCollection().
#define KSM_PATH_LENGTH 4096 /* Includes trailing NULL */ |
#define KSM_POLICY_DESC_LENGTH 256 /* Includes trailing NULL */ |
Definition at line 60 of file ksm.h.
Referenced by cmd_exportpolicy(), KsmImportPolicy(), KsmPolicyAlloc(), KsmPolicySetIdFromName(), KsmPolicyUpdateDesc(), and update_policies().
#define KSM_ROLL_DEFAULT 1 /* DoubleDNSKEY */ |
Definition at line 400 of file ksm.h.
Referenced by kaspSetPolicyDefaults(), KsmParameterCollection(), and SetPolicyDefaults().
#define KSM_ROLL_DNSKEY 1 |
Definition at line 402 of file ksm.h.
Referenced by KsmKeyPredict(), KsmRequestKeysByType(), and KsmUpdatePublishKeyTime().
#define KSM_ROLL_DS 2 |
Definition at line 404 of file ksm.h.
Referenced by KsmKeyPredict(), KsmRequestChangeState(), and KsmUpdatePublishKeyTime().
#define KSM_SALT_LENGTH 512 /* Includes trailing NULL */ |
Definition at line 65 of file ksm.h.
Referenced by KsmPolicySetIdFromName(), and KsmPolicyUpdateSalt().
#define KSM_SQL_SIZE 1024 /* Max size of SQL statement */ |
Definition at line 63 of file ksm.h.
Referenced by ChangeKeyState(), cmd_purgepolicy(), do_purge(), keyRoll(), KsmImportZone(), KsmPolicyNullSaltStamp(), KsmPolicyUpdateSalt(), KsmUpdateKeyTime(), MarkDSSeen(), and RetireOldKey().
#define KSM_STATE_ACTIVE 4 |
Definition at line 373 of file ksm.h.
Referenced by ChangeKeyState(), cmd_dsseen(), cmd_exportkeys(), cmd_import(), cmd_kskretire(), commKeyConfig(), CountKeys(), keyRoll(), KsmCheckNextRollover(), KsmDnssecKeyCreate(), KsmImportKeyPair(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmListRollovers(), KsmRequestAvailableCount(), KsmRequestChangeStateActiveRetire(), KsmRequestChangeStateKeyPublishActive(), KsmRequestChangeStateN(), KsmRequestChangeStatePublishActive(), KsmRequestChangeStateReadyActive(), KsmRequestChangeStateReadyActiveN(), KsmRequestCheckActiveKey(), KsmRequestCheckCompromisedFlag(), KsmRequestIssueKeys(), KsmRequestKeysByType(), KsmRequestPendingRetireCount(), KsmRequestSetActiveExpectedRetire(), KsmUpdateKey(), ListKeys(), MarkDSSeen(), and NewDSSet().
#define KSM_STATE_DEAD 6 |
Definition at line 377 of file ksm.h.
Referenced by cmd_delkey(), cmd_exportkeys(), cmd_kskrevoke(), cmd_purgepolicy(), commKeyConfig(), do_purge(), GetKeyState(), keyRoll(), KsmKeyGetUnallocated(), KsmKillKey(), KsmMarkKeysAsDead(), KsmPurge(), KsmRequestChangeState(), KsmRequestChangeStateRetireDead(), KsmUpdateKey(), ListKeys(), PurgeKeys(), and RevokeOldKey().
#define KSM_STATE_DSPUBLISH 8 |
Definition at line 381 of file ksm.h.
Referenced by ChangeKeyState(), cmd_exportkeys(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmRequestChangeStateDSPublishDSReady(), KsmRequestStandbyKSKCount(), KsmUpdateKey(), ListKeys(), MarkDSSeen(), and NewDSSet().
#define KSM_STATE_DSREADY 9 |
Definition at line 383 of file ksm.h.
Referenced by cmd_exportkeys(), keyRoll(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmRequestChangeState(), KsmRequestChangeStateDSPublishDSReady(), KsmRequestChangeStateDSReadyKeyPublish(), KsmRequestStandbyKSKCount(), KsmUpdateKey(), ListKeys(), and NewDSSet().
#define KSM_STATE_DSSUB 7 |
Definition at line 379 of file ksm.h.
Referenced by cmd_exportkeys(), CountKeys(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmRequestChangeStateGenerateDSSub(), KsmRequestChangeStateN(), KsmRequestStandbyKSKCount(), KsmUpdateKey(), ListKeys(), and NewDSSet().
#define KSM_STATE_GENERATE 1 |
Definition at line 367 of file ksm.h.
Referenced by allocateKeysToZone(), cmd_delkey(), cmd_exportkeys(), commKeyConfig(), GetKeyState(), KsmDnssecKeyCreate(), KsmImportKeyPair(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmMarkKeysAsDead(), KsmRequestChangeStateGenerateDSSub(), KsmRequestChangeStateGeneratePublish(), KsmRequestGenerateCount(), KsmUpdateKey(), and ListKeys().
#define KSM_STATE_KEYPUBLISH 10 |
Definition at line 385 of file ksm.h.
Referenced by cmd_exportkeys(), commKeyConfig(), keyRoll(), KsmRequestAvailableCount(), KsmRequestChangeState(), KsmRequestChangeStateDSReadyKeyPublish(), KsmRequestChangeStateKeyPublishActive(), KsmRequestIssueKeys(), KsmUpdateKey(), ListKeys(), and NewDSSet().
#define KSM_STATE_PUBLISH 2 |
Definition at line 369 of file ksm.h.
Referenced by ChangeKeyState(), cmd_exportkeys(), commKeyConfig(), keyRoll(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmRequestAvailableCount(), KsmRequestChangeStateGeneratePublish(), KsmRequestChangeStatePublishActive(), KsmRequestChangeStatePublishReady(), KsmRequestCheckFirstPass(), KsmRequestIssueKeys(), KsmRequestKeysByType(), KsmUpdateKey(), ListKeys(), MarkDSSeen(), and NewDSSet().
#define KSM_STATE_PUBLISH_STRING "publish" |
Definition at line 370 of file ksm.h.
Referenced by KsmRequestChangeState(), and KsmRequestChangeStateN().
#define KSM_STATE_READY 3 |
Definition at line 371 of file ksm.h.
Referenced by cmd_dsseen(), cmd_exportkeys(), CountKeys(), keyRoll(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmRequestAvailableCount(), KsmRequestChangeState(), KsmRequestChangeStatePublishReady(), KsmRequestChangeStateReadyActive(), KsmRequestChangeStateReadyActiveN(), KsmRequestCountReadyKey(), KsmRequestIssueKeys(), KsmUpdateKey(), ListKeys(), MarkDSSeen(), and NewDSSet().
#define KSM_STATE_READY_STRING "ready" |
Definition at line 372 of file ksm.h.
Referenced by KsmRequestChangeState().
#define KSM_STATE_RETIRE 5 |
Definition at line 375 of file ksm.h.
Referenced by ChangeKeyState(), cmd_dsseen(), cmd_exportkeys(), cmd_kskretire(), cmd_kskrevoke(), CountKeys(), KsmKeyGetUnallocated(), KsmRequestChangeStateActiveRetire(), KsmRequestChangeStateRetireDead(), KsmRequestIssueKeys(), KsmUpdateKey(), ListKeys(), NewDSSet(), printKey(), and RetireOldKey().
#define KSM_TIME_LENGTH 32 /* Includes trailing NULL */ |
Definition at line 61 of file ksm.h.
Referenced by cmd_import(), cmd_kskrevoke(), DtGeneralString(), DtParseDateTimeString(), and KsmPolicyUpdateSalt().
#define KSM_TYPE_KSK 257 |
Definition at line 360 of file ksm.h.
Referenced by allocateKeysToZone(), ChangeKeyState(), cmd_dsseen(), cmd_exportkeys(), cmd_genkeys(), cmd_kskretire(), cmd_kskrevoke(), commGenSignConf(), commKeyConfig(), do_communication(), do_keygen(), kaspSetPolicyDefaults(), keyRoll(), KsmDnssecKeyCreate(), KsmKeyPredict(), KsmListRollovers(), KsmRequestChangeState(), KsmRequestChangeStateDSReadyKeyPublish(), KsmRequestChangeStateGeneratePublishConditional(), KsmRequestChangeStateKeyPublishActive(), KsmRequestChangeStateN(), KsmRequestKeys(), KsmRequestKeysByType(), KsmRequestStandbyKSKCount(), KsmUpdateActiveKeyTime(), KsmUpdateDSPublishKeyTime(), KsmUpdatePublishKeyTime(), KsmUpdateRetireKeyTime(), LinkKeys(), ListKeys(), NewDSSet(), printKey(), and SetPolicyDefaults().
#define KSM_TYPE_ZSK 256 |
Definition at line 362 of file ksm.h.
Referenced by allocateKeysToZone(), ChangeKeyState(), cmd_exportkeys(), cmd_genkeys(), commGenSignConf(), commKeyConfig(), do_communication(), do_keygen(), kaspSetPolicyDefaults(), KsmKeyCountStillGood(), KsmKeyPredict(), KsmRequestChangeStateGeneratePublishConditional(), KsmRequestKeys(), KsmRequestKeysByType(), KsmRequestPendingRetireCount(), KsmUpdateActiveKeyTime(), KsmUpdateDSPublishKeyTime(), KsmUpdatePublishKeyTime(), KsmUpdateRetireKeyTime(), LinkKeys(), ListKeys(), printKey(), and SetPolicyDefaults().
#define KSM_ZONE_NAME_LENGTH 256 /* Includes trailing NULL */ |
#define RFC5011_ADD_HOLDDOWN_TIME (30*24*3600) /* seconds to prepublish KSK for 5011 */ |
Definition at line 70 of file ksm.h.
Referenced by KsmUpdatePublishKeyTime().
#define RFC5011_REM_HOLDDOWN_TIME (30*24*3600) /* seconds to postpublish KSK for 5011 */ |
Definition at line 71 of file ksm.h.
Referenced by KsmUpdateRetireKeyTime().
typedef int(* KSM_REQUEST_CALLBACK) (void *context, KSM_KEYDATA *key) |
int KsmCheckHSMkeyID | ( | int | repo_id, |
const char * | cka_id, | ||
int * | exists | ||
) |
Definition at line 723 of file ksm_import.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionInt(), DqsConditionString(), DqsCountInit(), DqsEnd(), DqsFree(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_import().
int KsmCheckNextRollover | ( | int | keytype, |
int | zone_id, | ||
char ** | datetime | ||
) |
Definition at line 457 of file ksm_list.c.
References DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbString(), DQS_COMPARE_EQ, DqsConditionInt(), DqsEnd(), DqsSpecifyInit(), DusFree(), KSM_STATE_ACTIVE, and StrAppend().
Referenced by do_communication().
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 KsmDeleteKeyRange | ( | int | minid, |
int | maxid | ||
) |
Definition at line 70 of file ksm_key_delete.c.
References DbExecuteSqlNoResult(), DbHandle(), DdsConditionInt(), DdsEnd(), DdsFree(), DdsInit(), DQS_COMPARE_EQ, DQS_COMPARE_GE, and DQS_COMPARE_LE.
Referenced by KsmDeleteKeyRanges().
int KsmDeleteKeyRanges | ( | int | limit[], |
int | size | ||
) |
Definition at line 151 of file ksm_key_delete.c.
References KsmDeleteKeyRange().
int KsmDeleteZone | ( | int | zone_id | ) |
Definition at line 372 of file ksm_zone.c.
References DbErrmsg(), DbExecuteSqlNoResult(), DbHandle(), DdsConditionInt(), DdsEnd(), DdsFree(), DdsInit(), DQS_COMPARE_EQ, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_delzone(), and update_zones().
int KsmDnssecKeyCreate | ( | int | zone_id, |
int | keypair_id, | ||
int | keytype, | ||
int | state, | ||
int | rfc5011, | ||
const char * | time, | ||
const char * | retTime, | ||
DB_ID * | id | ||
) |
Definition at line 141 of file ksm_key.c.
References DbExecuteSqlNoResult(), DbHandle(), DbLastRowId(), DisAppendInt(), DisAppendString(), DisEnd(), DisFree(), DisSpecifyInit(), KSM_INVARG, KSM_STATE_ACTIVE, KSM_STATE_GENERATE, KSM_TYPE_KSK, KsmKeywordStateValueToName(), MsgLog(), StrAppend(), and StrFree.
Referenced by allocateKeysToZone(), and cmd_import().
int KsmDNSSECKeysInSMCount | ( | DB_RESULT | handle, |
int * | count | ||
) |
Definition at line 165 of file ksm_dnsseckeys.c.
References DB_COUNT, DbErrmsg(), DbFetchRow(), DbFreeRow(), DbHandle(), DbInt(), KSM_SQLFAIL, and MsgLog().
int KsmDNSSECKeysInSMCountInit | ( | DB_RESULT * | handle, |
int | policy_id | ||
) |
Definition at line 66 of file ksm_dnsseckeys.c.
References DbExecuteSql(), DbHandle(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), and DqsFree().
int KsmDNSSECKeysStateCountInit | ( | DB_RESULT * | result, |
int | policy_id, | ||
KSM_KEY_POLICY * | key_policy, | ||
int | state | ||
) |
Definition at line 113 of file ksm_dnsseckeys.c.
References KSM_KEY_POLICY::algorithm, KSM_KEY_POLICY::bits, DbExecuteSql(), DbHandle(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), DqsFree(), KSM_INVARG, MsgLog(), KSM_KEY_POLICY::sm, and KSM_KEY_POLICY::type.
int KsmImportKeyPair | ( | int | policy_id, |
const char * | HSMKeyID, | ||
int | smID, | ||
int | size, | ||
int | alg, | ||
int | state, | ||
const char * | time, | ||
int | fixDate, | ||
DB_ID * | id | ||
) |
Definition at line 344 of file ksm_import.c.
References DbExecuteSqlNoResult(), DbHandle(), DbLastRowId(), DisAppendInt(), DisAppendString(), DisEnd(), DisFree(), DisSpecifyInit(), KSM_INVARG, KSM_STATE_ACTIVE, KSM_STATE_GENERATE, KsmKeywordStateValueToName(), MsgLog(), StrAppend(), and StrFree.
Referenced by cmd_import().
int KsmImportPolicy | ( | const char * | policy_name, |
const char * | policy_description | ||
) |
Definition at line 147 of file ksm_import.c.
References DbExecuteSqlNoResult(), DbHandle(), DbQuoteString(), DisAppendString(), DisEnd(), DisFree(), DisSpecifyInit(), KSM_INVARG, KSM_POLICY_DESC_LENGTH, and MsgLog().
Referenced by update_policies().
int KsmImportRepository | ( | const char * | repo_name, |
const char * | repo_capacity, | ||
int | require_backup | ||
) |
Definition at line 70 of file ksm_import.c.
References DB_SECURITY_MODULE_TABLE, DbErrmsg(), DbExecuteSqlNoResult(), DbHandle(), DbIntQuery(), DisAppendInt(), DisAppendString(), DisEnd(), DisFree(), DisSpecifyInit(), DQS_COMPARE_EQ, DqsConditionString(), DqsCountInit(), DqsEnd(), DqsFree(), DusConditionString(), DusEnd(), DusFree(), DusInit(), DusSetInt(), DusSetString(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by update_repositories().
int KsmImportZone | ( | const char * | zone_name, |
int | policy_id, | ||
int | fail_if_exists, | ||
int * | new_zone, | ||
const char * | signconf, | ||
const char * | input, | ||
const char * | output, | ||
const char * | input_type, | ||
const char * | output_type | ||
) |
Definition at line 218 of file ksm_import.c.
References DB_ZONE_TABLE, DbErrmsg(), DbExecuteSqlNoResult(), DbHandle(), DbIntQuery(), DisAppendInt(), DisAppendString(), DisEnd(), DisFree(), DisSpecifyInit(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DqsConditionKeyword(), DqsCountInit(), DqsEnd(), DqsFree(), DusConditionString(), DusEnd(), DusFree(), DusInit(), DusSetInt(), DusSetString(), KSM_INVARG, KSM_SQL_SIZE, KSM_SQLFAIL, MsgLog(), StrAppend(), StrFree, and StrStrdup().
Referenced by cmd_addzone(), and update_zones().
int KsmInit | ( | void | ) |
Definition at line 57 of file ksm_init_rundown.c.
References DbInit(), KME_MAX_VALUE, KME_MIN_VALUE, MsgInit(), and MsgRegister().
int KsmKey | ( | DB_RESULT | result, |
KSM_KEYDATA * | data | ||
) |
Definition at line 368 of file ksm_key.c.
References KSM_KEYDATA::active, KSM_KEYDATA::algorithm, DB_KEYDATA_ACTIVE, DB_KEYDATA_ALGORITHM, DB_KEYDATA_DEAD, DB_KEYDATA_FIXED_DATE, DB_KEYDATA_GENERATE, DB_KEYDATA_ID, DB_KEYDATA_KEYTYPE, DB_KEYDATA_LOCATION, DB_KEYDATA_PUBLISH, DB_KEYDATA_READY, DB_KEYDATA_RETIRE, DB_KEYDATA_REVOKE, DB_KEYDATA_RFC5011, DB_KEYDATA_STATE, DB_KEYDATA_ZONE_ID, DbFetchRow(), DbFreeRow(), DbInt(), DbStringBuffer(), DbUnsignedLong(), KSM_KEYDATA::dead, KSM_KEYDATA::fixedDate, KSM_KEYDATA::generate, KSM_KEYDATA::keypair_id, KSM_KEYDATA::keytype, KSM_INVARG, KSM_KEYDATA::location, MsgLog(), KSM_KEYDATA::publish, KSM_KEYDATA::ready, KSM_KEYDATA::retire, KSM_KEYDATA::revoke, KSM_KEYDATA::rfc5011, KSM_KEYDATA::state, and KSM_KEYDATA::zone_id.
Referenced by ChangeKeyState(), cmd_exportkeys(), KsmKeyData(), KsmMarkKeysAsDead(), KsmRequestChangeState(), KsmRequestChangeStateN(), KsmRequestIssueKeys(), KsmRequestSetActiveExpectedRetire(), KsmUpdate(), and NewDSSet().
int KsmKeyCountQueue | ( | int | keytype, |
int * | count, | ||
int | zone_id | ||
) |
Definition at line 664 of file ksm_key.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DqsConditionInt(), DqsConditionKeyword(), DqsCountInit(), DqsEnd(), DqsFree(), KME_BUFFEROVF, KME_SQLFAIL, KSM_STATE_ACTIVE, KSM_STATE_DSPUBLISH, KSM_STATE_DSREADY, KSM_STATE_DSSUB, KSM_STATE_GENERATE, KSM_STATE_PUBLISH, KSM_STATE_READY, and MsgLog().
Referenced by allocateKeysToZone().
int KsmKeyCountStillGood | ( | int | policy_id, |
int | sm, | ||
int | bits, | ||
int | algorithm, | ||
int | interval, | ||
const char * | datetime, | ||
int * | count, | ||
int | keytype | ||
) |
Definition at line 743 of file ksm_key.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DqsConditionInt(), DqsConditionKeyword(), DqsEnd(), DqsFree(), KME_BUFFEROVF, KME_SQLFAIL, KSM_STATE_ACTIVE, KSM_STATE_DSPUBLISH, KSM_STATE_DSREADY, KSM_STATE_DSSUB, KSM_STATE_GENERATE, KSM_STATE_PUBLISH, KSM_STATE_READY, KSM_TYPE_ZSK, KsmParameterCollection(), KsmParameterKskPropagationDelay(), KsmParameterKskTtl(), KsmParameterPropagationDelay(), KsmParameterPubSafety(), KsmParameterZskTtl(), MsgLog(), StrAppend(), and StrStrdup().
Referenced by cmd_genkeys(), and do_keygen().
int KsmKeyData | ( | DB_ID | id, |
KSM_KEYDATA * | data | ||
) |
Definition at line 507 of file ksm_key.c.
References KsmKey(), KsmKeyEnd(), and KsmKeyInitId().
void KsmKeyEnd | ( | DB_RESULT | result | ) |
Definition at line 478 of file ksm_key.c.
References DbFreeResult().
Referenced by ChangeKeyState(), cmd_exportkeys(), KsmKeyData(), KsmMarkKeysAsDead(), KsmRequestChangeState(), KsmRequestChangeStateN(), KsmRequestIssueKeys(), KsmRequestSetActiveExpectedRetire(), KsmUpdate(), and NewDSSet().
int KsmKeyGetUnallocated | ( | int | policy_id, |
int | sm, | ||
int | bits, | ||
int | algorithm, | ||
int | zone_id, | ||
int | share_keys, | ||
int * | keypair_id | ||
) |
Definition at line 881 of file ksm_key.c.
References DB_KEYDATA_ID, DbErrmsg(), DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DQS_COMPARE_EQ, DQS_COMPARE_IS, DQS_COMPARE_NOT_IN, DqsConditionInt(), DqsConditionKeyword(), DqsFree(), DqsSpecifyInit(), KSM_KEYS_NOT_SHARED, KSM_SQLFAIL, KSM_STATE_DEAD, KSM_STATE_RETIRE, and MsgLog().
Referenced by allocateKeysToZone().
int KsmKeyInit | ( | DB_RESULT * | result, |
DQS_QUERY_CONDITION * | condition | ||
) |
Definition at line 251 of file ksm_key.c.
References DQS_QUERY_CONDITION::compare, DB_KEYDATA_ALGORITHM, DB_KEYDATA_FIELDS, DB_KEYDATA_ID, DB_KEYDATA_KEYTYPE, DB_KEYDATA_STATE, DB_KEYDATA_ZONE_ID, DQS_END_OF_LIST, DqsConditionInt(), DqsEnd(), DqsFree(), DqsSpecifyInit(), KME_UNRCONCOD, KsmKeyInitSql(), MsgLog(), and DQS_QUERY_CONDITION::number.
Referenced by KsmKeyInitId(), KsmRequestChangeStateN(), and KsmUpdate().
Definition at line 328 of file ksm_key.c.
References DQS_QUERY_CONDITION::code, DQS_QUERY_CONDITION::compare, DQS_QUERY_CONDITION::data, DB_KEYDATA_ID, DQS_COMPARE_EQ, DQS_END_OF_LIST, KsmKeyInit(), and DQS_QUERY_CONDITION::number.
Referenced by KsmKeyData().
int KsmKeyInitSql | ( | DB_RESULT * | result, |
const char * | sql | ||
) |
Definition at line 219 of file ksm_key.c.
References DbExecuteSql(), and DbHandle().
Referenced by ChangeKeyState(), cmd_exportkeys(), KsmKeyInit(), KsmMarkKeysAsDead(), KsmRequestChangeState(), KsmRequestIssueKeys(), KsmRequestSetActiveExpectedRetire(), and NewDSSet().
int KsmKeyPairCreate | ( | int | policy_id, |
const char * | HSMKeyID, | ||
int | smID, | ||
int | size, | ||
int | alg, | ||
const char * | generate, | ||
DB_ID * | id | ||
) |
Definition at line 84 of file ksm_key.c.
References DbExecuteSqlNoResult(), DbHandle(), DbLastRowId(), DisAppendInt(), DisAppendString(), DisEnd(), DisFree(), DisSpecifyInit(), KSM_INVARG, and MsgLog().
Referenced by cmd_genkeys(), and do_keygen().
int KsmKeyPredict | ( | int | policy_id, |
int | keytype, | ||
int | shared_keys, | ||
int | interval, | ||
int * | count, | ||
int | rollover_scheme, | ||
int | zone_count | ||
) |
Definition at line 571 of file ksm_key.c.
References KSM_PARCOLL::dsttl, KME_UNKEYTYPE, KSM_PARCOLL::ksklife, KSM_PARCOLL::kskpropdelay, KSM_PARCOLL::kskttl, KSM_INVARG, KSM_KEYS_NOT_SHARED, KSM_ROLL_DNSKEY, KSM_ROLL_DS, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmParameterCollection(), MsgLog(), KSM_PARCOLL::propdelay, KSM_PARCOLL::pub_safety, KSM_PARCOLL::standbyksks, KSM_PARCOLL::standbyzsks, and KSM_PARCOLL::zsklife.
Referenced by allocateKeysToZone(), cmd_genkeys(), and do_keygen().
int KsmKeyQuery | ( | const char * | sql, |
DB_RESULT * | result | ||
) |
int KsmKeywordAlgorithmNameToValue | ( | const char * | name | ) |
Definition at line 207 of file ksm_keyword.c.
Referenced by cmd_import().
const char* KsmKeywordAlgorithmValueToName | ( | int | value | ) |
Definition at line 232 of file ksm_keyword.c.
int KsmKeywordFormatNameToValue | ( | const char * | name | ) |
Definition at line 212 of file ksm_keyword.c.
const char* KsmKeywordFormatValueToName | ( | int | value | ) |
Definition at line 237 of file ksm_keyword.c.
int KsmKeywordParameterExists | ( | const char * | name | ) |
Definition at line 286 of file ksm_keyword.c.
References STR_KEYWORD_ELEMENT::string.
int KsmKeywordParameterNameToValue | ( | const char * | name | ) |
Definition at line 217 of file ksm_keyword.c.
int KsmKeywordRollNameToValue | ( | const char * | name | ) |
Definition at line 257 of file ksm_keyword.c.
Referenced by SetParamOnPolicy().
const char* KsmKeywordRollValueToName | ( | int | value | ) |
Definition at line 262 of file ksm_keyword.c.
const char* KsmKeywordSerialValueToName | ( | int | value | ) |
Definition at line 252 of file ksm_keyword.c.
Referenced by append_policy(), and commGenSignConf().
int KsmKeywordStateNameToValue | ( | const char * | name | ) |
Definition at line 222 of file ksm_keyword.c.
const char* KsmKeywordStateValueToName | ( | int | value | ) |
Definition at line 242 of file ksm_keyword.c.
Referenced by ChangeKeyState(), cmd_exportkeys(), cmd_kskrevoke(), KsmDnssecKeyCreate(), KsmImportKeyPair(), KsmRequestChangeState(), KsmRequestChangeStateN(), KsmRequestPrintKey(), ListKeys(), MarkDSSeen(), RetireOldKey(), and RevokeOldKey().
int KsmKeywordTypeNameToValue | ( | const char * | name | ) |
Definition at line 227 of file ksm_keyword.c.
Referenced by cmd_rollpolicy(), and cmd_rollzone().
const char* KsmKeywordTypeValueToName | ( | int | value | ) |
Definition at line 247 of file ksm_keyword.c.
Referenced by KsmRequestChangeStateGenerateDSSubConditional(), KsmRequestChangeStateGeneratePublishConditional(), KsmRequestCheckActiveKey(), and KsmRequestCountReadyKey().
int KsmKillKey | ( | int | keypair_id, |
int | zone_id | ||
) |
Definition at line 1019 of file ksm_key.c.
References DbExecuteSqlNoResult(), DbHandle(), DQS_COMPARE_EQ, DqsConditionInt(), DtParseDateTimeString(), DusConditionInt(), DusEnd(), DusFree(), DusInit(), DusSetInt(), DusSetString(), KSM_STATE_DEAD, and StrFree.
Referenced by KsmMarkKeysAsDead().
int KsmListBackups | ( | int | repo_id, |
int | verbose_flag | ||
) |
Definition at line 64 of file ksm_list.c.
References DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DbString(), DbStringFree(), DusEnd(), DusFree(), KSM_INT_STR_SIZE, and StrAppend().
Referenced by cmd_listbackups().
int KsmListPolicies | ( | ) |
Definition at line 306 of file ksm_list.c.
References DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbString(), DbStringFree(), DusEnd(), DusFree(), and StrAppend().
Referenced by cmd_listpolicy().
int KsmListRepos | ( | ) |
Definition at line 242 of file ksm_list.c.
References DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DbString(), DbStringFree(), DusEnd(), DusFree(), and StrAppend().
Referenced by cmd_listrepo().
int KsmListRollovers | ( | int | zone_id, |
int * | ds_count | ||
) |
Definition at line 369 of file ksm_list.c.
References DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DbString(), DbStringFree(), DusEnd(), DusFree(), KSM_INT_STR_SIZE, KSM_STATE_ACTIVE, KSM_TYPE_KSK, and StrAppend().
Referenced by cmd_listrolls().
int KsmMarkBackup | ( | int | repo_id, |
const char * | datetime | ||
) |
Definition at line 650 of file ksm_import.c.
References DbErrmsg(), DbExecuteSqlNoResult(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), DusConditionInt(), DusEnd(), DusFree(), DusInit(), DusSetString(), KSM_SQLFAIL, MsgLog(), and StrAppend().
Referenced by cmd_backup().
int KsmMarkKeysAsDead | ( | int | zone_id | ) |
Definition at line 957 of file ksm_key.c.
References DB_KEYDATA_FIELDS, DQS_COMPARE_EQ, DQS_COMPARE_GT, DQS_COMPARE_LT, DqsConditionInt(), DqsEnd(), DqsFree(), DqsSpecifyInit(), KSM_KEYDATA::keypair_id, KSM_STATE_DEAD, KSM_STATE_GENERATE, KsmKey(), KsmKeyEnd(), KsmKeyInitSql(), and KsmKillKey().
Referenced by cmd_delzone(), and update_zones().
int KsmMarkPreBackup | ( | int | repo_id, |
const char * | datetime | ||
) |
Definition at line 517 of file ksm_import.c.
References DbErrmsg(), DbExecuteSqlNoResult(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), DusConditionInt(), DusEnd(), DusFree(), DusInit(), DusSetString(), KSM_SQLFAIL, MsgLog(), and StrAppend().
Referenced by cmd_backup().
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 KsmParameterClockskew | ( | KSM_PARCOLL * | collection | ) |
Definition at line 60 of file ksm_parameter_value.c.
References KSM_PARCOLL::clockskew, KSM_INVARG, and MsgLog().
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 KsmParameterInitialPublicationInterval | ( | KSM_PARCOLL * | collection | ) |
Definition at line 235 of file ksm_parameter_value.c.
References KSM_INVARG, KsmParameterPropagationDelay(), KsmParameterSoaMin(), KsmParameterSoaTtl(), KsmParameterZskTtl(), max, min, and MsgLog().
int KsmParameterKskLifetime | ( | KSM_PARCOLL * | collection | ) |
Definition at line 70 of file ksm_parameter_value.c.
References KSM_PARCOLL::ksklife, KSM_INVARG, and MsgLog().
int KsmParameterKskPropagationDelay | ( | KSM_PARCOLL * | collection | ) |
Definition at line 170 of file ksm_parameter_value.c.
References KSM_PARCOLL::kskpropdelay, KSM_INVARG, and MsgLog().
Referenced by KsmKeyCountStillGood(), and KsmRequestPendingRetireCount().
int KsmParameterKskTtl | ( | KSM_PARCOLL * | collection | ) |
Definition at line 160 of file ksm_parameter_value.c.
References KSM_PARCOLL::kskttl, KSM_INVARG, and MsgLog().
Referenced by KsmKeyCountStillGood(), and KsmRequestPendingRetireCount().
int KsmParameterPropagationDelay | ( | KSM_PARCOLL * | collection | ) |
Definition at line 100 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::propdelay.
Referenced by KsmKeyCountStillGood(), KsmParameterInitialPublicationInterval(), and KsmRequestPendingRetireCount().
int KsmParameterPubSafety | ( | KSM_PARCOLL * | collection | ) |
Definition at line 190 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::pub_safety.
Referenced by KsmKeyCountStillGood(), and KsmRequestPendingRetireCount().
int KsmParameterRegistrationDelay | ( | KSM_PARCOLL * | collection | ) |
Definition at line 180 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::regdelay.
int KsmParameterRetSafety | ( | KSM_PARCOLL * | collection | ) |
Definition at line 200 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::ret_safety.
int KsmParameterRevoke | ( | KSM_PARCOLL * | collection | ) |
Definition at line 220 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::revoke.
int KsmParameterRfc5011 | ( | KSM_PARCOLL * | collection | ) |
Definition at line 210 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::rfc5011.
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 KsmParameterSigningInterval | ( | KSM_PARCOLL * | collection | ) |
Definition at line 110 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::signint.
int KsmParameterSoaMin | ( | KSM_PARCOLL * | collection | ) |
Definition at line 120 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::soamin.
Referenced by KsmParameterInitialPublicationInterval().
int KsmParameterSoaTtl | ( | KSM_PARCOLL * | collection | ) |
Definition at line 130 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::soattl.
Referenced by KsmParameterInitialPublicationInterval().
int KsmParameterStandbyKSKeys | ( | KSM_PARCOLL * | collection | ) |
Definition at line 80 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::standbyksks.
Referenced by KsmRequestChangeStateGenerateDSSubConditional().
int KsmParameterStandbyZSKeys | ( | KSM_PARCOLL * | collection | ) |
Definition at line 90 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::standbyzsks.
Referenced by KsmRequestChangeStateGeneratePublishConditional().
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().
int KsmParameterZskLifetime | ( | KSM_PARCOLL * | collection | ) |
Definition at line 140 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::zsklife.
int KsmParameterZskTtl | ( | KSM_PARCOLL * | collection | ) |
Definition at line 150 of file ksm_parameter_value.c.
References KSM_INVARG, MsgLog(), and KSM_PARCOLL::zskttl.
Referenced by KsmKeyCountStillGood(), KsmParameterInitialPublicationInterval(), and KsmRequestPendingRetireCount().
int KsmPolicy | ( | DB_RESULT | handle, |
KSM_POLICY * | data | ||
) |
Definition at line 191 of file ksm_policy.c.
References DB_POLICY_ID, DB_POLICY_NAME, DbErrmsg(), DbFetchRow(), DbFreeRow(), DbHandle(), DbInt(), DbStringBuffer(), KSM_POLICY::id, KSM_INVARG, KSM_NAME_LENGTH, KSM_SQLFAIL, MsgLog(), and KSM_POLICY::name.
Referenced by cmd_exportpolicy(), cmd_purgepolicy(), and server_main().
KSM_POLICY* KsmPolicyAlloc | ( | ) |
Definition at line 959 of file ksm_policy.c.
References KSM_POLICY::denial, KSM_POLICY::description, KSM_POLICY::enforcer, KSM_POLICY::keys, KSM_POLICY::ksk, KSM_POLICY_DESC_LENGTH, KsmPolicyFree(), KSM_POLICY::parent, KSM_POLICY::signature, KSM_POLICY::signer, KSM_POLICY::zone, and KSM_POLICY::zsk.
Referenced by cmd_genkeys(), cmd_purgepolicy(), LinkKeys(), server_main(), and update_policies().
int KsmPolicyClockskew | ( | KSM_SIGNATURE_POLICY * | policy | ) |
Definition at line 60 of file ksm_policy_value.c.
References KSM_SIGNATURE_POLICY::clockskew, KSM_INVARG, and MsgLog().
int KsmPolicyExists | ( | const char * | name | ) |
Definition at line 151 of file ksm_policy.c.
References DbErrmsg(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), KSM_SQLFAIL, KsmPolicyInit(), and MsgLog().
Referenced by cmd_genkeys(), LinkKeys(), server_main(), and update_policies().
void KsmPolicyFree | ( | KSM_POLICY * | policy | ) |
Definition at line 997 of file ksm_policy.c.
References KSM_POLICY::denial, KSM_POLICY::description, KSM_POLICY::enforcer, KSM_POLICY::keys, KSM_POLICY::ksk, KSM_POLICY::parent, KSM_POLICY::signature, KSM_POLICY::signer, KSM_POLICY::zone, and KSM_POLICY::zsk.
Referenced by cmd_exportpolicy(), cmd_genkeys(), cmd_purgepolicy(), KsmPolicyAlloc(), LinkKeys(), server_main(), and update_policies().
int KsmPolicyIdFromName | ( | const char * | name, |
int * | id | ||
) |
Definition at line 470 of file ksm_import.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionString(), DqsEnd(), DqsFree(), DqsSpecifyInit(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_addzone(), cmd_keypurge(), cmd_rollpolicy(), and update_zones().
int KsmPolicyIdFromZoneId | ( | int | zone_id, |
int * | policy_id | ||
) |
Definition at line 866 of file ksm_policy.c.
References DbErrmsg(), DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DQS_COMPARE_EQ, DqsConditionInt(), DqsFree(), DqsOrderBy(), DqsSpecifyInit(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_dsseen(), cmd_exportkeys(), cmd_kskretire(), cmd_kskrevoke(), and NewDSSet().
int KsmPolicyInit | ( | DB_RESULT * | handle, |
const char * | name | ||
) |
Definition at line 69 of file ksm_policy.c.
References DbExecuteSql(), DbHandle(), DQS_COMPARE_EQ, DqsConditionString(), DqsFree(), DqsOrderBy(), and DqsSpecifyInit().
Referenced by cmd_exportpolicy(), cmd_purgepolicy(), KsmPolicyExists(), KsmPolicySetIdFromName(), and server_main().
int KsmPolicyInitialPublicationInterval | ( | KSM_POLICY * | policy | ) |
Definition at line 138 of file ksm_policy_value.c.
References KSM_INVARG, max, min, MsgLog(), KSM_SIGNER_POLICY::propdelay, KSM_POLICY::signer, KSM_SIGNER_POLICY::soamin, KSM_SIGNER_POLICY::soattl, KSM_KEY_POLICY::ttl, and KSM_POLICY::zsk.
int KsmPolicyKeyLifetime | ( | KSM_KEY_POLICY * | policy | ) |
Definition at line 70 of file ksm_policy_value.c.
References KSM_INVARG, KSM_KEY_POLICY::lifetime, and MsgLog().
int KsmPolicyNameFromId | ( | KSM_POLICY * | policy | ) |
Definition at line 433 of file ksm_policy.c.
References DB_POLICY_NAME, DbErrmsg(), DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbStringBuffer(), DQS_COMPARE_EQ, DqsConditionInt(), DqsFree(), DqsOrderBy(), DqsSpecifyInit(), KSM_POLICY::id, KSM_INVARG, KSM_NAME_LENGTH, KSM_SQLFAIL, MsgLog(), and KSM_POLICY::name.
Referenced by KsmPolicyReadFromId().
int KsmPolicyNullSaltStamp | ( | int | policy_id | ) |
Definition at line 683 of file ksm_policy.c.
References DbExecuteSqlNoResult(), DbHandle(), KME_BUFFEROVF, KSM_INVARG, KSM_SQL_SIZE, and MsgLog().
Referenced by SetParamOnPolicy().
int KsmPolicyParameter | ( | DB_RESULT | handle, |
KSM_POLICY_PARAMETER * | data | ||
) |
Definition at line 372 of file ksm_policy.c.
References KSM_POLICY_PARAMETER::category, DB_POLICY_PARAMETER_CATEGORY, DB_POLICY_PARAMETER_NAME, DB_POLICY_PARAMETER_VALUE, DbErrmsg(), DbFetchRow(), DbFreeRow(), DbHandle(), DbInt(), DbStringBuffer(), KSM_INVARG, KSM_SQLFAIL, MsgLog(), KSM_POLICY_PARAMETER::name, and KSM_POLICY_PARAMETER::value.
Referenced by KsmPolicyRead().
int KsmPolicyParametersInit | ( | DB_RESULT * | handle, |
const char * | name | ||
) |
Definition at line 110 of file ksm_policy.c.
References DbExecuteSql(), DbHandle(), DQS_COMPARE_EQ, DqsConditionKeyword(), DqsConditionString(), DqsFree(), DqsOrderBy(), and DqsSpecifyInit().
Referenced by KsmPolicyRead().
int KsmPolicyPopulateSMFromIds | ( | KSM_POLICY * | policy | ) |
Definition at line 716 of file ksm_policy.c.
References DB_SECURITY_MODULE_CAPACITY, DB_SECURITY_MODULE_FIELDS, DB_SECURITY_MODULE_NAME, DB_SECURITY_MODULE_REQUIREBACKUP, DB_SECURITY_MODULE_TABLE, DbErrmsg(), DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DbStringBuffer(), DbUnsignedLong(), DQS_COMPARE_EQ, DqsConditionInt(), DqsFree(), DqsSpecifyInit(), KSM_POLICY::ksk, KSM_INVARG, KSM_NAME_LENGTH, KSM_SQLFAIL, MsgLog(), KSM_KEY_POLICY::require_backup, KSM_KEY_POLICY::sm, KSM_KEY_POLICY::sm_capacity, KSM_KEY_POLICY::sm_name, and KSM_POLICY::zsk.
Referenced by KsmPolicyRead().
int KsmPolicyPropagationDelay | ( | KSM_SIGNER_POLICY * | policy | ) |
Definition at line 90 of file ksm_policy_value.c.
References KSM_INVARG, MsgLog(), and KSM_SIGNER_POLICY::propdelay.
int KsmPolicyRead | ( | KSM_POLICY * | policy | ) |
Definition at line 232 of file ksm_policy.c.
References KSM_DENIAL_POLICY::algorithm, KSM_KEY_POLICY::algorithm, KSM_KEY_POLICY::bits, KSM_POLICY_PARAMETER::category, KSM_SIGNATURE_POLICY::clockskew, KSM_POLICY::denial, KSM_PARENT_POLICY::ds_ttl, KSM_POLICY::enforcer, KSM_DENIAL_POLICY::iteration, KSM_SIGNER_POLICY::jitter, KSM_ENFORCER_POLICY::keygeninterval, KSM_POLICY::keys, KSM_POLICY::ksk, KSM_INVARG, KsmParameterEnd(), KsmPolicyParameter(), KsmPolicyParametersInit(), KsmPolicyPopulateSMFromIds(), KsmPolicySetIdFromName(), KSM_KEY_POLICY::lifetime, KSM_KEY_POLICY::manual_rollover, MsgLog(), KSM_POLICY::name, KSM_POLICY_PARAMETER::name, KSM_DENIAL_POLICY::optout, KSM_KEY_POLICY::overlap, KSM_POLICY::parent, KSM_SIGNER_POLICY::propdelay, KSM_ZONE_POLICY::propdelay, KSM_PARENT_POLICY::propdelay, KSM_COMMON_KEY_POLICY::publish_safety, KSM_COMMON_KEY_POLICY::purge, KSM_SIGNER_POLICY::refresh, KSM_DENIAL_POLICY::resalt, KSM_SIGNATURE_POLICY::resign, KSM_COMMON_KEY_POLICY::retire_safety, KSM_KEY_POLICY::rfc5011, KSM_KEY_POLICY::rollover_scheme, KSM_DENIAL_POLICY::saltlength, KSM_SIGNER_POLICY::serial, KSM_ZONE_POLICY::serial, KSM_COMMON_KEY_POLICY::share_keys, KSM_POLICY::shared_keys, KSM_POLICY::signature, KSM_POLICY::signer, KSM_KEY_POLICY::sm, KSM_ZONE_POLICY::soa_min, KSM_PARENT_POLICY::soa_min, KSM_ZONE_POLICY::soa_ttl, KSM_PARENT_POLICY::soa_ttl, KSM_SIGNER_POLICY::soamin, KSM_SIGNER_POLICY::soattl, KSM_KEY_POLICY::standby_keys, KSM_DENIAL_POLICY::ttl, KSM_COMMON_KEY_POLICY::ttl, KSM_KEY_POLICY::ttl, KSM_SIGNATURE_POLICY::valdefault, KSM_SIGNATURE_POLICY::valdenial, KSM_POLICY_PARAMETER::value, KSM_DENIAL_POLICY::version, KSM_POLICY::zone, and KSM_POLICY::zsk.
Referenced by cmd_exportpolicy(), cmd_genkeys(), do_communication(), kaspReadPolicy(), KsmPolicyReadFromId(), LinkKeys(), and update_policies().
int KsmPolicyReadFromId | ( | KSM_POLICY * | policy | ) |
Definition at line 420 of file ksm_policy.c.
References KsmPolicyNameFromId(), and KsmPolicyRead().
int KsmPolicySetIdFromName | ( | KSM_POLICY * | policy | ) |
Definition at line 817 of file ksm_policy.c.
References DB_POLICY_DESCRIPTION, DB_POLICY_ID, DbErrmsg(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DbStringBuffer(), KSM_POLICY::denial, KSM_POLICY::description, KSM_POLICY::id, KSM_INVARG, KSM_POLICY_DESC_LENGTH, KSM_SALT_LENGTH, KSM_SQLFAIL, KsmPolicyInit(), MsgLog(), KSM_POLICY::name, and KSM_DENIAL_POLICY::salt.
Referenced by KsmPolicyRead(), and update_policies().
int KsmPolicySigningInterval | ( | KSM_PARCOLL * | collection | ) |
int KsmPolicySoaMin | ( | KSM_SIGNER_POLICY * | policy | ) |
Definition at line 105 of file ksm_policy_value.c.
References KSM_INVARG, MsgLog(), and KSM_SIGNER_POLICY::soamin.
int KsmPolicySoaTtl | ( | KSM_SIGNER_POLICY * | policy | ) |
Definition at line 115 of file ksm_policy_value.c.
References KSM_INVARG, MsgLog(), and KSM_SIGNER_POLICY::soattl.
int KsmPolicyStandbyKeys | ( | KSM_KEY_POLICY * | policy | ) |
Definition at line 80 of file ksm_policy_value.c.
References KSM_INVARG, MsgLog(), and KSM_KEY_POLICY::overlap.
int KsmPolicyUpdateDesc | ( | int | policy_id, |
const char * | policy_description | ||
) |
Definition at line 929 of file ksm_policy.c.
References DbExecuteSqlNoResult(), DbHandle(), DbQuoteString(), DisFree(), DQS_COMPARE_EQ, DusConditionInt(), DusEnd(), DusInit(), DusSetString(), KSM_INVARG, KSM_POLICY_DESC_LENGTH, and MsgLog().
Referenced by update_policies().
int KsmPolicyUpdateSalt | ( | KSM_POLICY * | policy | ) |
Definition at line 501 of file ksm_policy.c.
References DB_POLICY_SALT, DB_POLICY_SALT_STAMP, DbErrmsg(), DbExecuteSql(), DbExecuteSqlNoResult(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbStringBuffer(), KSM_POLICY::denial, DQS_COMPARE_EQ, DqsConditionInt(), DqsFree(), DqsOrderBy(), DqsSpecifyInit(), DtDateDiff(), DtParseDateTimeString(), KSM_POLICY::id, KME_BUFFEROVF, KSM_INVARG, KSM_SALT_LENGTH, KSM_SQL_SIZE, KSM_SQLFAIL, KSM_TIME_LENGTH, MsgLog(), KSM_DENIAL_POLICY::resalt, KSM_DENIAL_POLICY::salt, KSM_DENIAL_POLICY::salt_stamp, KSM_DENIAL_POLICY::saltlength, StrFree, and StrStrncpy().
Referenced by server_main().
int KsmPolicyZskTtl | ( | KSM_PARCOLL * | collection | ) |
void KsmPurge | ( | void | ) |
Definition at line 52 of file ksm_purge.c.
References DB_KEYDATA_FIELDS, DB_KEYDATA_ID, DbExecuteSql(), DbExecuteSqlNoResult(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DdsConditionInt(), DdsEnd(), DdsFree(), DdsInit(), DQS_COMPARE_EQ, DqsConditionInt(), DqsEnd(), DqsSpecifyInit(), and KSM_STATE_DEAD.
int KsmRequestAvailableCount | ( | int | keytype, |
const char * | datetime, | ||
KSM_PARCOLL * | parameters, | ||
int * | count, | ||
int | zone_id | ||
) |
Definition at line 1640 of file ksm_request.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DqsConditionInt(), DqsConditionKeyword(), DqsCountInit(), DqsEnd(), DqsFree(), KME_BUFFEROVF, KME_SQLFAIL, KSM_STATE_ACTIVE, KSM_STATE_KEYPUBLISH, KSM_STATE_PUBLISH, KSM_STATE_READY, and MsgLog().
Referenced by KsmRequestChangeStateGeneratePublishConditional().
int KsmRequestChangeState | ( | int | keytype, |
const char * | datetime, | ||
int | src_state, | ||
int | dst_state, | ||
int | zone_id, | ||
int | policy_id, | ||
int | rollover_scheme, | ||
int | rfc5011, | ||
int | revoke, | ||
int * | NewDS | ||
) |
Definition at line 789 of file ksm_request.c.
References DB_KEYDATA_FIELDS, DbErrmsg(), DbExecuteSqlNoResult(), DBG_M_REQUEST, DbgLog(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DQS_COMPARE_LE, DqsConditionInt(), DqsConditionString(), DqsCountInit(), DqsEnd(), DqsFree(), DqsSpecifyInit(), DusConditionInt(), DusConditionKeyword(), DusEnd(), DusFree(), DusInit(), DusSetInt(), DusSetString(), KSM_KEYDATA::keypair_id, KME_DS_REM_ZONE, KME_KEYCHSTATE, KME_NEW_DS, KME_SQLFAIL, KSM_ROLL_DS, KSM_STATE_DEAD, KSM_STATE_DSREADY, KSM_STATE_KEYPUBLISH, KSM_STATE_PUBLISH_STRING, KSM_STATE_READY, KSM_STATE_READY_STRING, KSM_TYPE_KSK, KsmKey(), KsmKeyEnd(), KsmKeyInitSql(), KsmKeywordStateValueToName(), KsmZoneNameFromId(), MemMalloc(), MsgLog(), StrAppend(), StrFree, StrStrdup(), and StrToUpper().
Referenced by KsmRequestChangeStateActiveRetire(), KsmRequestChangeStateDSPublishDSReady(), KsmRequestChangeStateDSReadyKeyPublish(), KsmRequestChangeStateKeyPublishActive(), KsmRequestChangeStatePublishActive(), KsmRequestChangeStatePublishReady(), KsmRequestChangeStateReadyActive(), and KsmRequestChangeStateRetireDead().
int KsmRequestChangeStateActiveRetire | ( | int | keytype, |
const char * | datetime, | ||
int | zone_id, | ||
int | policy_id, | ||
int | revoke | ||
) |
Definition at line 737 of file ksm_request.c.
References KSM_STATE_ACTIVE, KSM_STATE_RETIRE, and KsmRequestChangeState().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateDSPublishDSReady | ( | int | keytype, |
const char * | datetime, | ||
int | zone_id, | ||
int | policy_id | ||
) |
Definition at line 717 of file ksm_request.c.
References KSM_STATE_DSPUBLISH, KSM_STATE_DSREADY, and KsmRequestChangeState().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateDSReadyKeyPublish | ( | const char * | datetime, |
int | zone_id, | ||
int | policy_id | ||
) |
Definition at line 724 of file ksm_request.c.
References KSM_STATE_DSREADY, KSM_STATE_KEYPUBLISH, KSM_TYPE_KSK, and KsmRequestChangeState().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateGenerateDSSub | ( | int | keytype, |
const char * | datetime, | ||
int | count, | ||
int | zone_id | ||
) |
Definition at line 1018 of file ksm_request.c.
References KSM_STATE_DSSUB, KSM_STATE_GENERATE, and KsmRequestChangeStateN().
Referenced by KsmRequestChangeStateGenerateDSSubConditional().
int KsmRequestChangeStateGenerateDSSubConditional | ( | int | keytype, |
const char * | datetime, | ||
KSM_PARCOLL * | collection, | ||
int | zone_id, | ||
int * | NewDS | ||
) |
Definition at line 1285 of file ksm_request.c.
References DBG_M_REQUEST, DbgLog(), KME_GENERATECNT, KME_INSFGENKEY, KsmKeywordTypeValueToName(), KsmParameterStandbyKSKeys(), KsmRequestChangeStateGenerateDSSub(), KsmRequestGenerateCount(), KsmRequestStandbyKSKCount(), and MsgLog().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateGeneratePublish | ( | int | keytype, |
const char * | datetime, | ||
int | count, | ||
int | zone_id | ||
) |
Definition at line 1011 of file ksm_request.c.
References KSM_STATE_GENERATE, KSM_STATE_PUBLISH, and KsmRequestChangeStateN().
Referenced by KsmRequestChangeStateGeneratePublishConditional().
int KsmRequestChangeStateGeneratePublishConditional | ( | int | keytype, |
const char * | datetime, | ||
KSM_PARCOLL * | collection, | ||
int | zone_id, | ||
int | run_interval | ||
) |
Definition at line 1390 of file ksm_request.c.
References DBG_M_REQUEST, DbgLog(), KME_AVAILCNT, KME_GENERATECNT, KME_INSFGENKEY, KME_KEYCNTSUMM, KME_RETIRECNT, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmKeywordTypeValueToName(), KsmParameterStandbyZSKeys(), KsmRequestAvailableCount(), KsmRequestChangeStateGeneratePublish(), KsmRequestGenerateCount(), KsmRequestPendingRetireCount(), and MsgLog().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateKeyPublishActive | ( | const char * | datetime, |
int | zone_id, | ||
int | policy_id, | ||
int * | NewDS | ||
) |
Definition at line 731 of file ksm_request.c.
References KSM_STATE_ACTIVE, KSM_STATE_KEYPUBLISH, KSM_TYPE_KSK, and KsmRequestChangeState().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateN | ( | int | keytype, |
const char * | datetime, | ||
int | count, | ||
int | src_state, | ||
int | dst_state, | ||
int | zone_id | ||
) |
Definition at line 1066 of file ksm_request.c.
References DQS_QUERY_CONDITION::code, DQS_QUERY_CONDITION::compare, DQS_QUERY_CONDITION::data, DB_KEYDATA_KEYTYPE, DB_KEYDATA_STATE, DB_KEYDATA_ZONE_ID, DbErrmsg(), DbExecuteSqlNoResult(), DBG_M_REQUEST, DbgLog(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DQS_END_OF_LIST, DqsFree(), DusConditionInt(), DusConditionKeyword(), DusEnd(), DusFree(), DusInit(), DusSetInt(), DusSetString(), KSM_KEYDATA::keypair_id, KME_BACK_FATAL, KME_BACK_NON_FATAL, KME_KEYCHSTATE, KME_SQLFAIL, KSM_INVARG, KSM_SQLFAIL, KSM_STATE_ACTIVE, KSM_STATE_DSSUB, KSM_STATE_PUBLISH_STRING, KSM_TYPE_KSK, KsmKey(), KsmKeyEnd(), KsmKeyInit(), KsmKeywordStateValueToName(), MemFree, MemMalloc(), MsgLog(), DQS_QUERY_CONDITION::number, StrAppend(), StrFree, StrStrdup(), and StrToUpper().
Referenced by KsmRequestChangeStateGenerateDSSub(), KsmRequestChangeStateGeneratePublish(), KsmRequestChangeStateReadyActiveN(), and KsmRequestKeysByType().
int KsmRequestChangeStatePublishActive | ( | int | keytype, |
const char * | datetime, | ||
int | zone_id, | ||
int | policy_id, | ||
int * | NewDS | ||
) |
Definition at line 705 of file ksm_request.c.
References KSM_STATE_ACTIVE, KSM_STATE_PUBLISH, and KsmRequestChangeState().
int KsmRequestChangeStatePublishReady | ( | int | keytype, |
const char * | datetime, | ||
int | zone_id, | ||
int | policy_id, | ||
int | rfc5011, | ||
int * | NewDS | ||
) |
Definition at line 699 of file ksm_request.c.
References KSM_STATE_PUBLISH, KSM_STATE_READY, and KsmRequestChangeState().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateReadyActive | ( | int | keytype, |
const char * | datetime, | ||
int | zone_id, | ||
int | policy_id, | ||
int * | NewDS | ||
) |
Definition at line 711 of file ksm_request.c.
References KSM_STATE_ACTIVE, KSM_STATE_READY, and KsmRequestChangeState().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateReadyActiveN | ( | int | keytype, |
const char * | datetime, | ||
int | count, | ||
int | zone_id | ||
) |
Definition at line 1025 of file ksm_request.c.
References KSM_STATE_ACTIVE, KSM_STATE_READY, and KsmRequestChangeStateN().
Referenced by KsmRequestKeysByType().
int KsmRequestChangeStateRetireDead | ( | int | keytype, |
const char * | datetime, | ||
int | zone_id, | ||
int | policy_id, | ||
int | rollover_scheme, | ||
int * | NewDS | ||
) |
Definition at line 744 of file ksm_request.c.
References KSM_STATE_DEAD, KSM_STATE_RETIRE, and KsmRequestChangeState().
Referenced by KsmRequestKeysByType().
int KsmRequestCheckActiveKey | ( | int | keytype, |
const char * | datetime, | ||
int * | count, | ||
int | zone_id | ||
) |
Definition at line 1839 of file ksm_request.c.
References DbErrmsg(), DBG_M_REQUEST, DbgLog(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_GT, DqsConditionInt(), DqsConditionKeyword(), DqsConditionString(), DqsCountInit(), DqsEnd(), DqsFree(), KME_REMAINACT, KME_SQLFAIL, KSM_STATE_ACTIVE, KsmKeywordTypeValueToName(), and MsgLog().
Referenced by KsmRequestKeysByType().
int KsmRequestCheckCompromisedFlag | ( | int | keytype, |
int | zone_id, | ||
int * | comp_flag | ||
) |
Definition at line 2011 of file ksm_request.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), KME_SQLFAIL, KSM_STATE_ACTIVE, and MsgLog().
Referenced by KsmRequestKeysByType().
int KsmRequestCheckFirstPass | ( | int | keytype, |
int * | first_pass_flag, | ||
int | zone_id | ||
) |
Definition at line 1955 of file ksm_request.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_GE, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), KME_SQLFAIL, KSM_STATE_PUBLISH, and MsgLog().
Referenced by KsmRequestKeysByType().
int KsmRequestCountReadyKey | ( | int | keytype, |
const char * | datetime, | ||
int * | count, | ||
int | zone_id | ||
) |
Definition at line 1903 of file ksm_request.c.
References DbErrmsg(), DBG_M_REQUEST, DbgLog(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), KME_READYCNT, KME_SQLFAIL, KSM_STATE_READY, KsmKeywordTypeValueToName(), and MsgLog().
Referenced by KsmRequestKeysByType().
int KsmRequestDNSSECKeys | ( | const char * | datetime, |
KSM_POLICY * | policy | ||
) |
int KsmRequestDNSSECKeysChangeState | ( | KSM_KEY_POLICY * | policy, |
const char * | datetime, | ||
int | src_state, | ||
int | dst_state, | ||
int | verify | ||
) |
int KsmRequestDNSSECKeysChangeStateGeneratePublishConditional | ( | KSM_POLICY * | policy, |
KSM_KEY_POLICY * | key_policy, | ||
const char * | datetime, | ||
int | verify | ||
) |
int KsmRequestDNSSECKeysChangeStatePublishReady | ( | KSM_KEY_POLICY * | policy, |
const char * | datetime, | ||
int | verify | ||
) |
int KsmRequestDNSSECKeysChangeStateRetireDead | ( | KSM_KEY_POLICY * | policy, |
const char * | datetime, | ||
int | verify | ||
) |
int KsmRequestDNSSECKeysPendingRetireCount | ( | KSM_KEY_POLICY | , |
const char * | datetime, | ||
int * | count | ||
) |
int KsmRequestDNSSECKeysSetActiveExpectedRetire | ( | int | keytype, |
const char * | datetime, | ||
int | verify | ||
) |
int KsmRequestGenerateCount | ( | int | keytype, |
int * | count, | ||
int | zone_id | ||
) |
Definition at line 1710 of file ksm_request.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), KME_SQLFAIL, KSM_STATE_GENERATE, and MsgLog().
Referenced by commGenSignConf(), KsmRequestChangeStateGenerateDSSubConditional(), and KsmRequestChangeStateGeneratePublishConditional().
int KsmRequestIssueKeys | ( | int | keytype, |
KSM_REQUEST_CALLBACK | callback, | ||
void * | context, | ||
int | zone_id | ||
) |
Definition at line 2073 of file ksm_request.c.
References DB_KEYDATA_FIELDS, DQS_COMPARE_EQ, DQS_COMPARE_IN, DqsConditionInt(), DqsConditionKeyword(), DqsEnd(), DqsFree(), DqsSpecifyInit(), KME_BUFFEROVF, KSM_STATE_ACTIVE, KSM_STATE_KEYPUBLISH, KSM_STATE_PUBLISH, KSM_STATE_READY, KSM_STATE_RETIRE, KsmKey(), KsmKeyEnd(), KsmKeyInitSql(), and MsgLog().
Referenced by KsmRequestKeysByType().
int KsmRequestKeys | ( | int | keytype, |
int | rollover, | ||
const char * | datetime, | ||
KSM_REQUEST_CALLBACK | callback, | ||
void * | context, | ||
int | policy_id, | ||
int | zone_id, | ||
int | run_interval, | ||
int * | NewDS | ||
) |
Definition at line 95 of file ksm_request.c.
References DbBeginTransaction(), DbCommit(), DbErrmsg(), DbHandle(), DbRollback(), KME_SQLFAIL, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmRequestKeysByType(), KsmUpdate(), and MsgLog().
Referenced by commGenSignConf().
int KsmRequestKeysByType | ( | int | keytype, |
int | rollover, | ||
const char * | datetime, | ||
KSM_REQUEST_CALLBACK | callback, | ||
void * | context, | ||
int | policy_id, | ||
int | zone_id, | ||
int | run_interval, | ||
int * | NewDS | ||
) |
Definition at line 210 of file ksm_request.c.
References DbErrmsg(), DBG_M_REQUEST, DbgLog(), DbHandle(), KME_BACK_FATAL, KME_DS_SUBMISSION, KME_MAN_ROLL_REQUIRED, KME_NOREADYKEY, KME_PROM_PUB, KME_REQKEYTYPE, KME_ROLL_ZONE, KME_SQLFAIL, KME_UNKEYTYPE, KSM_PARCOLL::kskmanroll, KSM_PARCOLL::kskroll, KSM_ROLL_DNSKEY, KSM_STATE_ACTIVE, KSM_STATE_PUBLISH, KSM_TYPE_KSK, KSM_TYPE_ZSK, KsmParameterCollection(), KsmRequestChangeStateActiveRetire(), KsmRequestChangeStateDSPublishDSReady(), KsmRequestChangeStateDSReadyKeyPublish(), KsmRequestChangeStateGenerateDSSubConditional(), KsmRequestChangeStateGeneratePublishConditional(), KsmRequestChangeStateKeyPublishActive(), KsmRequestChangeStateN(), KsmRequestChangeStatePublishReady(), KsmRequestChangeStateReadyActive(), KsmRequestChangeStateReadyActiveN(), KsmRequestChangeStateRetireDead(), KsmRequestCheckActiveKey(), KsmRequestCheckCompromisedFlag(), KsmRequestCheckFirstPass(), KsmRequestCountReadyKey(), KsmRequestIssueKeys(), KsmRequestSetActiveExpectedRetire(), KsmZoneNameFromId(), MsgLog(), KSM_PARCOLL::rfc5011, StrFree, and KSM_PARCOLL::zskmanroll.
Referenced by KsmRequestKeys().
int KsmRequestPendingRetireCount | ( | int | keytype, |
const char * | datetime, | ||
KSM_PARCOLL * | parameters, | ||
int * | count, | ||
int | zone_id, | ||
int | interval | ||
) |
Definition at line 1507 of file ksm_request.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_LE, DqsConditionInt(), DqsConditionKeyword(), DqsCountInit(), DqsEnd(), DqsFree(), KME_BUFFEROVF, KME_SQLFAIL, KSM_STATE_ACTIVE, KSM_TYPE_ZSK, KsmParameterKskPropagationDelay(), KsmParameterKskTtl(), KsmParameterPropagationDelay(), KsmParameterPubSafety(), KsmParameterZskTtl(), and MsgLog().
Referenced by allocateKeysToZone(), and KsmRequestChangeStateGeneratePublishConditional().
int KsmRequestPrintKey | ( | void * | context, |
KSM_KEYDATA * | data | ||
) |
Definition at line 2152 of file ksm_request.c.
References KSM_KEYDATA::algorithm, KSM_KEYDATA::keypair_id, KSM_KEYDATA::keytype, KsmKeywordStateValueToName(), KSM_KEYDATA::location, and KSM_KEYDATA::state.
int KsmRequestSetActiveExpectedRetire | ( | int | keytype, |
const char * | datetime, | ||
int | zone_id | ||
) |
Definition at line 532 of file ksm_request.c.
References DB_KEYDATA_FIELDS, DbErrmsg(), DbExecuteSqlNoResult(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), DqsSpecifyInit(), DusConditionKeyword(), DusEnd(), DusFree(), DusInit(), DusSetInt(), DusSetString(), KSM_KEYDATA::keypair_id, KME_SQLFAIL, KSM_STATE_ACTIVE, KsmKey(), KsmKeyEnd(), KsmKeyInitSql(), MemMalloc(), MsgLog(), StrAppend(), and StrFree.
Referenced by KsmRequestKeysByType().
int KsmRequestStandbyKSKCount | ( | int * | count, |
int | zone_id | ||
) |
Definition at line 1760 of file ksm_request.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DQS_COMPARE_IN, DqsConditionInt(), DqsConditionKeyword(), DqsCountInit(), DqsEnd(), DqsFree(), KME_BUFFEROVF, KME_SQLFAIL, KSM_STATE_DSPUBLISH, KSM_STATE_DSREADY, KSM_STATE_DSSUB, KSM_TYPE_KSK, and MsgLog().
Referenced by KsmRequestChangeStateGenerateDSSubConditional().
int KsmRollbackMarkPreBackup | ( | int | repo_id | ) |
Definition at line 580 of file ksm_import.c.
References DbErrmsg(), DbExecuteSqlNoResult(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), DqsEnd(), DqsFree(), DusConditionInt(), DusEnd(), DusFree(), DusInit(), DusSetString(), KSM_SQLFAIL, MsgLog(), and StrAppend().
Referenced by cmd_backup().
int KsmRundown | ( | void | ) |
Definition at line 82 of file ksm_init_rundown.c.
References DbRundown(), and MsgRundown().
int KsmSerialIdFromName | ( | const char * | name, |
int * | id | ||
) |
Definition at line 427 of file ksm_import.c.
References DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionString(), DqsEnd(), DqsFree(), DqsSpecifyInit(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by SetParamOnPolicy().
int KsmSmIdFromName | ( | const char * | name, |
int * | id | ||
) |
Definition at line 398 of file ksm_import.c.
References DB_SECURITY_MODULE_TABLE, DbErrmsg(), DbHandle(), DbIntQuery(), DQS_COMPARE_EQ, DqsConditionString(), DqsEnd(), DqsFree(), DqsSpecifyInit(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_backup(), cmd_import(), cmd_listbackups(), and SetParamOnPolicy().
int KsmUpdate | ( | int | policy_id, |
int | zone_id | ||
) |
Definition at line 70 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 327 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 432 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 451 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 222 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 150 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(), KSM_KEYDATA::rfc5011, and KSM_KEYDATA::state.
Referenced by KsmUpdate().
void KsmUpdateKEYPublishKeyTime | ( | KSM_KEYDATA * | data, |
KSM_PARCOLL * | collection, | ||
int | zone_id | ||
) |
Definition at line 497 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 561 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(), KsmUpdateReadyKeyTime(), and KsmUpdateRetireKeyTime().
void KsmUpdatePublishKeyTime | ( | KSM_KEYDATA * | data, |
KSM_PARCOLL * | collection, | ||
int | zone_id | ||
) |
Definition at line 240 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(), MAX, MsgLog(), KSM_PARCOLL::propdelay, KSM_PARCOLL::pub_safety, KSM_PARCOLL::rfc5011, RFC5011_ADD_HOLDDOWN_TIME, and KSM_PARCOLL::zskttl.
Referenced by KsmUpdateKey().
void KsmUpdateReadyKeyTime | ( | KSM_KEYDATA * | data, |
KSM_PARCOLL * | collection, | ||
int | zone_id | ||
) |
Definition at line 311 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::keypair_id, KSM_INVARG, KsmUpdateKeyTime(), MsgLog(), and KSM_KEYDATA::rfc5011.
Referenced by KsmUpdateKey().
void KsmUpdateRetireKeyTime | ( | KSM_KEYDATA * | data, |
KSM_PARCOLL * | collection, | ||
int | zone_id | ||
) |
Definition at line 377 of file ksm_update.c.
References DBG_M_UPDATE, DbgOutput(), KSM_KEYDATA::dead, KSM_PARCOLL::dsttl, KSM_KEYDATA::fixedDate, 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, KSM_KEYDATA::rfc5011, RFC5011_REM_HOLDDOWN_TIME, and KSM_PARCOLL::zsksiglife.
Referenced by KsmUpdateKey().
Definition at line 150 of file ksm_zone.c.
References DB_ZONE_ID, DB_ZONE_IN_TYPE, DB_ZONE_INPUT, DB_ZONE_NAME, DB_ZONE_OUT_TYPE, DB_ZONE_OUTPUT, DB_ZONE_POLICY_ID, DB_ZONE_SIGNCONF, DbErrmsg(), DbFetchRow(), DbFreeRow(), DbHandle(), DbInt(), DbStringBuffer(), KSM_ZONE::id, KSM_ZONE::in_type, KSM_ZONE::input, KSM_ADAPTER_NAME_LENGTH, KSM_PATH_LENGTH, KSM_SQLFAIL, KSM_ZONE_NAME_LENGTH, MsgLog(), KSM_ZONE::name, KSM_ZONE::out_type, KSM_ZONE::output, KSM_ZONE::policy_id, and KSM_ZONE::signconf.
Referenced by cmd_exportzonelist().
int KsmZoneCount | ( | DB_RESULT | handle, |
int * | count | ||
) |
Definition at line 206 of file ksm_zone.c.
References DB_COUNT, DbErrmsg(), DbFetchRow(), DbFreeRow(), DbHandle(), DbInt(), KSM_SQLFAIL, and MsgLog().
Referenced by cmd_genkeys(), cmd_purgepolicy(), cmd_rollpolicy(), do_keygen(), and update_zones().
int KsmZoneCountInit | ( | DB_RESULT * | handle, |
int | id | ||
) |
Definition at line 107 of file ksm_zone.c.
References DB_ZONE_TABLE, DbExecuteSql(), DbHandle(), DQS_COMPARE_EQ, DqsConditionInt(), DqsCountInit(), and DqsFree().
Referenced by cmd_genkeys(), cmd_purgepolicy(), cmd_rollpolicy(), do_keygen(), and update_zones().
int KsmZoneIdAndPolicyFromName | ( | const char * | zone_name, |
int * | policy_id, | ||
int * | zone_id | ||
) |
Definition at line 310 of file ksm_zone.c.
References DB_ZONE_ID, DB_ZONE_POLICY_ID, DbErrmsg(), DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DQS_COMPARE_EQ, DqsConditionString(), DqsFree(), DqsOrderBy(), DqsSpecifyInit(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_delzone(), cmd_import(), and cmd_rollzone().
int KsmZoneIdFromName | ( | const char * | zone_name, |
int * | zone_id | ||
) |
Definition at line 247 of file ksm_zone.c.
References DB_ZONE_ID, DbErrmsg(), DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbInt(), DQS_COMPARE_EQ, DqsConditionString(), DqsFree(), DqsOrderBy(), DqsSpecifyInit(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_dsseen(), cmd_exportkeys(), cmd_keypurge(), cmd_kskretire(), cmd_kskrevoke(), cmd_listkeys(), cmd_listrolls(), do_communication(), LinkKeys(), list_zone_node(), and update_zones().
int KsmZoneInit | ( | DB_RESULT * | handle, |
int | policy_id | ||
) |
Definition at line 66 of file ksm_zone.c.
References DB_ZONE_FIELDS, DB_ZONE_TABLE, DbExecuteSql(), DbHandle(), DQS_COMPARE_EQ, DqsConditionInt(), DqsFree(), DqsOrderBy(), and DqsSpecifyInit().
Referenced by cmd_exportzonelist().
int KsmZoneNameFromId | ( | int | zone_id, |
char ** | zone_name | ||
) |
Definition at line 412 of file ksm_zone.c.
References DB_ZONE_NAME, DbErrmsg(), DbExecuteSql(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbHandle(), DbString(), DQS_COMPARE_EQ, DqsConditionInt(), DqsFree(), DqsOrderBy(), DqsSpecifyInit(), KSM_INVARG, KSM_SQLFAIL, and MsgLog().
Referenced by cmd_exportkeys(), KsmRequestChangeState(), and KsmRequestKeysByType().