OpenDNSSEC-enforcer  1.4.1
Functions
ksm_policy.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "ksm/database.h"
#include "ksm/database_statement.h"
#include "ksm/datetime.h"
#include "ksm/db_fields.h"
#include "ksm/debug.h"
#include "ksm/ksmdef.h"
#include "ksm/kmedef.h"
#include "ksm/ksm.h"
#include "ksm/ksm_internal.h"
#include "ksm/message.h"
#include "ksm/string_util.h"
Include dependency graph for ksm_policy.c:

Go to the source code of this file.

Functions

int KsmPolicyInit (DB_RESULT *result, const char *name)
 
int KsmPolicyParametersInit (DB_RESULT *result, const char *name)
 
int KsmPolicyExists (const char *name)
 
int KsmPolicy (DB_RESULT result, KSM_POLICY *data)
 
int KsmPolicyRead (KSM_POLICY *policy)
 
int KsmPolicyParameter (DB_RESULT result, 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_POLICYKsmPolicyAlloc ()
 
void KsmPolicyFree (KSM_POLICY *policy)
 

Function Documentation

int KsmPolicy ( DB_RESULT  result,
KSM_POLICY data 
)
KSM_POLICY* KsmPolicyAlloc ( )
int KsmPolicyExists ( const char *  name)
void KsmPolicyFree ( KSM_POLICY policy)
int KsmPolicyIdFromZoneId ( int  zone_id,
int *  policy_id 
)
int KsmPolicyInit ( DB_RESULT result,
const char *  name 
)
int KsmPolicyNameFromId ( KSM_POLICY policy)
int KsmPolicyNullSaltStamp ( int  policy_id)

Definition at line 669 of file ksm_policy.c.

References DbExecuteSqlNoResult(), DbHandle(), KME_BUFFEROVF, KSM_INVARG, KSM_SQL_SIZE, and MsgLog().

Referenced by SetParamOnPolicy().

int KsmPolicyParameter ( DB_RESULT  result,
KSM_POLICY_PARAMETER data 
)
int KsmPolicyParametersInit ( DB_RESULT result,
const char *  name 
)
int KsmPolicyPopulateSMFromIds ( KSM_POLICY policy)
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 410 of file ksm_policy.c.

References KsmPolicyNameFromId(), and KsmPolicyRead().

int KsmPolicySetIdFromName ( KSM_POLICY policy)
int KsmPolicyUpdateDesc ( int  policy_id,
const char *  policy_description 
)
int KsmPolicyUpdateSalt ( KSM_POLICY policy)