OpenDNSSEC-enforcer
1.4.1
|
#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/ksm.h"
#include "ksm/ksm_internal.h"
#include "ksm/message.h"
#include "ksm/string_util.h"
Go to the source code of this file.
Functions | |
int | KsmZoneInit (DB_RESULT *result, int policy_id) |
int | KsmZoneCountInit (DB_RESULT *result, int id) |
int | KsmZone (DB_RESULT result, KSM_ZONE *data) |
int | KsmZoneCount (DB_RESULT result, int *count) |
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 KsmDeleteZone | ( | int | zone_id) |
Definition at line 374 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().
Definition at line 152 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 | result, |
int * | count | ||
) |
Definition at line 208 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 * | result, |
int | id | ||
) |
Definition at line 109 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 312 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 249 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_listkeys(), cmd_listrolls(), do_communication(), LinkKeys(), list_zone_node(), and update_zones().
int KsmZoneInit | ( | DB_RESULT * | result, |
int | policy_id | ||
) |
Definition at line 68 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 414 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().