OpenDNSSEC-enforcer  1.4.9
Macros | Functions | Variables
ksmutil.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdbool.h>
#include "config.h"
#include <getopt.h>
#include <syslog.h>
#include <sys/stat.h>
#include <pwd.h>
#include <grp.h>
#include <ksm/ksmutil.h>
#include <ksm/ksm.h>
#include <ksm/database.h>
#include "ksm/database_statement.h"
#include "ksm/db_fields.h"
#include <ksm/datetime.h>
#include <ksm/string_util.h>
#include <ksm/string_util2.h>
#include "ksm/kmemsg.h"
#include "ksm/kmedef.h"
#include "ksm/dbsmsg.h"
#include "ksm/dbsdef.h"
#include "ksm/message.h"
#include <libhsm.h>
#include <libhsmdns.h>
#include <ldns/ldns.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpointer.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/relaxng.h>
#include <libxml/xmlreader.h>
#include <libxml/xmlsave.h>
Include dependency graph for ksmutil.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define INT_TYPE   0
 
#define DURATION_TYPE   1
 
#define BOOL_TYPE   2
 
#define REPO_TYPE   3
 
#define SERIAL_TYPE   4
 
#define ROLLOVER_TYPE   5
 
#define INT_TYPE_NO_FREE   6
 
#define MAXPATHLEN   4096
 
#define DEFAULT_LOG_FACILITY   LOG_USER
 

Functions

void usage_general ()
 
void usage_setup ()
 
void usage_control ()
 
void usage_update ()
 
void usage_zoneadd ()
 
void usage_zonedel ()
 
void usage_zonelist ()
 
void usage_zone ()
 
void usage_repo ()
 
void usage_policyexport ()
 
void usage_policyimport ()
 
void usage_policylist ()
 
void usage_policypurge ()
 
void usage_policy ()
 
void usage_keylist ()
 
void usage_keyexport ()
 
void usage_keyimport ()
 
void usage_keyroll ()
 
void usage_keypurge ()
 
void usage_keygen ()
 
void usage_keykskrevoke ()
 
void usage_keykskretire ()
 
void usage_keydsseen ()
 
void usage_keydelete ()
 
void usage_key ()
 
void usage_backup ()
 
void usage_rollover ()
 
void usage_database ()
 
void usage_zonelist2 ()
 
void usage ()
 
void date_help ()
 
void states_help ()
 
void types_help ()
 
int cmd_setup ()
 
int cmd_update (const char *qualifier)
 
int cmd_addzone ()
 
int cmd_delzone ()
 
int cmd_listzone ()
 
int cmd_exportkeys ()
 
int cmd_exportpolicy ()
 
int cmd_exportzonelist ()
 
int cmd_rollzone ()
 
int cmd_rollpolicy ()
 
int cmd_keypurge ()
 
int cmd_backup (const char *qualifier)
 
int cmd_listrolls ()
 
int cmd_listbackups ()
 
int cmd_listrepo ()
 
int cmd_listpolicy ()
 
int cmd_listkeys ()
 
int cmd_kskretire ()
 
int cmd_kskrevoke ()
 
int cmd_dsseen ()
 
int cmd_import ()
 
int cmd_dbbackup ()
 
int cmd_purgepolicy ()
 
int cmd_control (char *command)
 
int main (int argc, char *argv[])
 
int db_connect (DB_HANDLE *dbhandle, FILE **lock_fd, int backup)
 
void db_disconnect (FILE *lock_fd)
 
int get_lite_lock (char *lock_filename, FILE *lock_fd)
 
int release_lite_lock (FILE *lock_fd)
 
int read_filenames (char **zone_list_filename, char **kasp_filename)
 
int update_repositories ()
 
int update_policies (char *kasp_filename)
 
int update_zones (char *zone_list_filename)
 
int SetParamOnPolicy (const xmlChar *new_value, const char *name, const char *category, int current_value, int policy_id, int value_type)
 
void SetPolicyDefaults (KSM_POLICY *policy, char *name)
 
int backup_file (const char *orig_file, const char *backup_file)
 
int get_db_details (char **dbschema, char **host, char **port, char **user, char **password)
 
int read_zonelist_filename (char **zone_list_filename)
 
xmlDocPtr add_zone_node (const char *docname, const char *zone_name, const char *policy_name, const char *sig_conf_name, const char *input_name, const char *output_name, const char *input_type, const char *output_type)
 
xmlDocPtr del_zone_node (const char *docname, const char *zone_name)
 
void list_zone_node (const char *docname, int *zone_ids)
 
int append_policy (xmlDocPtr doc, KSM_POLICY *policy)
 
xmlDocPtr del_policy_node (const char *docname, const char *policy_name)
 
int printKey (void *context, KSM_KEYDATA *key_data)
 
void ksm_log_msg (const char *format)
 
int ListKeys (int zone_id)
 
int PurgeKeys (int zone_id, int policy_id)
 
int cmd_genkeys ()
 
int cmd_delkey ()
 
int fix_file_perms (const char *dbschema)
 
int CountKeys (int *zone_id, int keytag, const char *cka_id, int *key_count, char **temp_cka_id, int *temp_key_state, int *temp_keypair_id)
 
int GetKeyState (const char *cka_id, int *temp_key_state, int *temp_keypair_id)
 
int MarkDSSeen (int keypair_id, int zone_id, int policy_id, const char *datetime, int key_state)
 
int RetireOldKey (int zone_id, int policy_id, const char *datetime)
 
int RevokeOldKey (int zone_id, int policy_id, const char *datetime)
 
int CountKeysInState (int keytype, int keystate, int *count, int zone_id)
 
int ChangeKeyState (int keytype, const char *cka_id, int zone_id, int policy_id, const char *datetime, int keystate)
 
int get_conf_key_info (int *interval, int *man_key_gen)
 
int LinkKeys (const char *zone_name, int policy_id)
 
int allocateKeysToZone (KSM_POLICY *policy, int key_type, int zone_id, uint16_t interval, const char *zone_name, int man_key_gen, int rollover_scheme)
 
int keyRoll (int zone_id, int policy_id, int key_type)
 
int get_policy_name_from_id (KSM_ZONE *zone)
 
int append_zone (xmlDocPtr doc, KSM_ZONE *zone)
 
int ShellQuoteString (const char *string, char *buffer, size_t buflen)
 
int rename_signconf (const char *zonelist_filename, const char *o_zone)
 
int ListDS (int zone_id)
 

Variables

char * optarg
 
int optind
 
const char * progname = NULL
 
char * config = (char *) OPENDNSSEC_CONFIG_FILE
 
char * o_keystate = NULL
 
char * o_algo = NULL
 
char * o_input = NULL
 
char * o_in_type = NULL
 
char * o_cka_id = NULL
 
char * o_size = NULL
 
char * o_interval = NULL
 
char * o_output = NULL
 
char * o_out_type = NULL
 
char * o_policy = NULL
 
char * o_repository = NULL
 
char * o_signerconf = NULL
 
char * o_keytype = NULL
 
char * o_time = NULL
 
char * o_retire = NULL
 
char * o_tdead = NULL
 
char * o_zone = NULL
 
char * o_zonetotal = NULL
 
char * o_keytag = NULL
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 26 of file ksmutil.c.

#define BOOL_TYPE   2

Definition at line 77 of file ksmutil.c.

Referenced by SetParamOnPolicy(), and update_policies().

#define DEFAULT_LOG_FACILITY   LOG_USER

Definition at line 91 of file ksmutil.c.

Referenced by cmd_dsseen(), cmd_rollpolicy(), cmd_rollzone(), and update_policies().

#define DURATION_TYPE   1

Definition at line 76 of file ksmutil.c.

Referenced by SetParamOnPolicy(), and update_policies().

#define INT_TYPE   0

Definition at line 75 of file ksmutil.c.

Referenced by update_policies().

#define INT_TYPE_NO_FREE   6

Definition at line 81 of file ksmutil.c.

Referenced by SetParamOnPolicy(), and update_policies().

#define MAX (   a,
 
)    ((a) > (b) ? (a) : (b))

Definition at line 72 of file ksmutil.c.

#define MAXPATHLEN   4096

Definition at line 84 of file ksmutil.c.

Referenced by cmd_addzone().

#define REPO_TYPE   3

Definition at line 78 of file ksmutil.c.

Referenced by SetParamOnPolicy(), and update_policies().

#define ROLLOVER_TYPE   5

Definition at line 80 of file ksmutil.c.

Referenced by SetParamOnPolicy().

#define SERIAL_TYPE   4

Definition at line 79 of file ksmutil.c.

Referenced by SetParamOnPolicy(), and update_policies().

Function Documentation

xmlDocPtr add_zone_node ( const char *  docname,
const char *  zone_name,
const char *  policy_name,
const char *  sig_conf_name,
const char *  input_name,
const char *  output_name,
const char *  input_type,
const char *  output_type 
)

Definition at line 6405 of file ksmutil.c.

Referenced by cmd_addzone().

int allocateKeysToZone ( KSM_POLICY policy,
int  key_type,
int  zone_id,
uint16_t  interval,
const char *  zone_name,
int  man_key_gen,
int  rollover_scheme 
)
int append_policy ( xmlDocPtr  doc,
KSM_POLICY policy 
)
int append_zone ( xmlDocPtr  doc,
KSM_ZONE zone 
)
int backup_file ( const char *  orig_file,
const char *  backup_file 
)

Definition at line 6032 of file ksmutil.c.

Referenced by cmd_addzone(), cmd_dbbackup(), cmd_delzone(), cmd_purgepolicy(), and db_connect().

int ChangeKeyState ( int  keytype,
const char *  cka_id,
int  zone_id,
int  policy_id,
const char *  datetime,
int  keystate 
)
int cmd_addzone ( )
int cmd_backup ( const char *  qualifier)
int cmd_control ( char *  command)

Definition at line 4022 of file ksmutil.c.

References StrAppend(), and StrFree.

Referenced by main().

int cmd_dbbackup ( )
int cmd_delkey ( )
int cmd_delzone ( )
int cmd_dsseen ( )
int cmd_exportkeys ( )
int cmd_exportpolicy ( )
int cmd_exportzonelist ( )
int cmd_genkeys ( )
int cmd_import ( )
int cmd_keypurge ( )
int cmd_kskretire ( )
int cmd_kskrevoke ( )
int cmd_listbackups ( )

Definition at line 2504 of file ksmutil.c.

References db_connect(), db_disconnect(), DbDisconnect(), KsmListBackups(), KsmSmIdFromName(), and o_repository.

Referenced by main().

int cmd_listkeys ( )

Definition at line 2633 of file ksmutil.c.

References db_connect(), db_disconnect(), DbDisconnect(), KsmZoneIdFromName(), ListKeys(), o_zone, and StrAppend().

Referenced by main().

int cmd_listpolicy ( )

Definition at line 2594 of file ksmutil.c.

References db_connect(), db_disconnect(), DbDisconnect(), and KsmListPolicies().

Referenced by main().

int cmd_listrepo ( )

Definition at line 2553 of file ksmutil.c.

References db_connect(), db_disconnect(), DbDisconnect(), and KsmListRepos().

Referenced by main().

int cmd_listrolls ( )
int cmd_listzone ( )
int cmd_purgepolicy ( )
int cmd_rollpolicy ( )
int cmd_rollzone ( )
int cmd_setup ( )
int cmd_update ( const char *  qualifier)
int CountKeys ( int *  zone_id,
int  keytag,
const char *  cka_id,
int *  key_count,
char **  temp_cka_id,
int *  temp_key_state,
int *  temp_keypair_id 
)
int CountKeysInState ( int  keytype,
int  keystate,
int *  count,
int  zone_id 
)
void date_help ( )

Definition at line 480 of file ksmutil.c.

Referenced by cmd_import(), and main().

int db_connect ( DB_HANDLE dbhandle,
FILE **  lock_fd,
int  backup 
)
void db_disconnect ( FILE *  lock_fd)
xmlDocPtr del_policy_node ( const char *  docname,
const char *  policy_name 
)

Definition at line 6753 of file ksmutil.c.

Referenced by cmd_purgepolicy().

xmlDocPtr del_zone_node ( const char *  docname,
const char *  zone_name 
)

Definition at line 6460 of file ksmutil.c.

Referenced by cmd_delzone().

int fix_file_perms ( const char *  dbschema)

Definition at line 7966 of file ksmutil.c.

References StrAppend(), and StrFree.

Referenced by cmd_setup().

int get_conf_key_info ( int *  interval,
int *  man_key_gen 
)

Definition at line 9038 of file ksmutil.c.

References config, DtXMLIntervalSeconds(), and StrFree.

Referenced by LinkKeys().

int get_db_details ( char **  dbschema,
char **  host,
char **  port,
char **  user,
char **  password 
)

Definition at line 6100 of file ksmutil.c.

References config, DbFlavour(), MYSQL_DB, SQLITE_DB, StrAppend(), and StrFree.

Referenced by cmd_dbbackup(), cmd_setup(), and db_connect().

int get_lite_lock ( char *  lock_filename,
FILE *  lock_fd 
)

Definition at line 4573 of file ksmutil.c.

References log_msg().

Referenced by cmd_dbbackup(), cmd_setup(), and db_connect().

int get_policy_name_from_id ( KSM_ZONE zone)
int GetKeyState ( const char *  cka_id,
int *  temp_key_state,
int *  temp_keypair_id 
)

Definition at line 8336 of file ksmutil.c.

References DbExecuteSql(), DbFetchRow(), DbFreeRow(), DbHandle(), DbInt(), KSM_STATE_DEAD, and KSM_STATE_GENERATE.

Referenced by cmd_delkey().

int keyRoll ( int  zone_id,
int  policy_id,
int  key_type 
)
void ksm_log_msg ( const char *  format)

Definition at line 6818 of file ksmutil.c.

Referenced by main().

int LinkKeys ( const char *  zone_name,
int  policy_id 
)
void list_zone_node ( const char *  docname,
int *  zone_ids 
)

Definition at line 6514 of file ksmutil.c.

References KsmZoneIdFromName().

Referenced by cmd_listzone().

int ListDS ( int  zone_id)
int ListKeys ( int  zone_id)
int main ( int  argc,
char *  argv[] 
)
int MarkDSSeen ( int  keypair_id,
int  zone_id,
int  policy_id,
const char *  datetime,
int  key_state 
)
int printKey ( void *  context,
KSM_KEYDATA key_data 
)
int PurgeKeys ( int  zone_id,
int  policy_id 
)
int read_filenames ( char **  zone_list_filename,
char **  kasp_filename 
)

Definition at line 4637 of file ksmutil.c.

References config, StrAppend(), and StrFree.

Referenced by cmd_purgepolicy(), cmd_setup(), and cmd_update().

int read_zonelist_filename ( char **  zone_list_filename)

Definition at line 6327 of file ksmutil.c.

References config, StrAppend(), and StrFree.

Referenced by cmd_addzone(), cmd_delzone(), and cmd_listzone().

int release_lite_lock ( FILE *  lock_fd)

Definition at line 4614 of file ksmutil.c.

Referenced by db_disconnect().

int rename_signconf ( const char *  zonelist_filename,
const char *  o_zone 
)

Definition at line 9726 of file ksmutil.c.

References StrAppend(), and StrFree.

Referenced by cmd_delzone().

int RetireOldKey ( int  zone_id,
int  policy_id,
const char *  datetime 
)
int RevokeOldKey ( int  zone_id,
int  policy_id,
const char *  datetime 
)
int SetParamOnPolicy ( const xmlChar *  new_value,
const char *  name,
const char *  category,
int  current_value,
int  policy_id,
int  value_type 
)
void SetPolicyDefaults ( KSM_POLICY policy,
char *  name 
)

Definition at line 5950 of file ksmutil.c.

References KSM_DENIAL_POLICY::algorithm, KSM_KEY_POLICY::algorithm, KSM_ENFORCER_POLICY::backup_interval, KSM_KEY_POLICY::bits, 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::keycreate, KSM_ENFORCER_POLICY::keygeninterval, KSM_POLICY::keys, KSM_POLICY::ksk, KSM_NAME_LENGTH, KSM_ROLL_DEFAULT, KSM_TYPE_KSK, KSM_TYPE_ZSK, KSM_KEY_POLICY::lifetime, KSM_KEY_POLICY::manual_rollover, KSM_POLICY::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::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_KEY_POLICY::type, KSM_SIGNATURE_POLICY::valdefault, KSM_SIGNATURE_POLICY::valdenial, KSM_DENIAL_POLICY::version, KSM_POLICY::zone, and KSM_POLICY::zsk.

Referenced by cmd_genkeys(), LinkKeys(), and update_policies().

int ShellQuoteString ( const char *  string,
char *  buffer,
size_t  buflen 
)

Definition at line 9703 of file ksmutil.c.

Referenced by cmd_setup().

void states_help ( )

Definition at line 500 of file ksmutil.c.

Referenced by main().

void types_help ( )

Definition at line 507 of file ksmutil.c.

Referenced by main().

int update_policies ( char *  kasp_filename)

Definition at line 4852 of file ksmutil.c.

References KSM_DENIAL_POLICY::algorithm, KSM_KEY_POLICY::algorithm, KSM_KEY_POLICY::bits, BOOL_TYPE, KSM_SIGNATURE_POLICY::clockskew, config, DEFAULT_LOG_FACILITY, KSM_POLICY::denial, KSM_POLICY::description, KSM_PARENT_POLICY::ds_ttl, DURATION_TYPE, KSM_POLICY::id, INT_TYPE, INT_TYPE_NO_FREE, KSM_DENIAL_POLICY::iteration, KSM_SIGNER_POLICY::jitter, KSM_POLICY::keys, KSM_POLICY::ksk, KSM_MSG_LENGTH, KSM_POLICY_DESC_LENGTH, KsmImportPolicy(), KsmParameterSet(), KsmPolicyAlloc(), KsmPolicyExists(), KsmPolicyFree(), KsmPolicyRead(), KsmPolicySetIdFromName(), KsmPolicyUpdateDesc(), KSM_KEY_POLICY::lifetime, KSM_KEY_POLICY::manual_rollover, KSM_DENIAL_POLICY::optout, KSM_POLICY::parent, KSM_ZONE_POLICY::propdelay, KSM_PARENT_POLICY::propdelay, KSM_COMMON_KEY_POLICY::publish_safety, KSM_COMMON_KEY_POLICY::purge, KSM_SIGNER_POLICY::refresh, REPO_TYPE, KSM_DENIAL_POLICY::resalt, KSM_SIGNATURE_POLICY::resign, KSM_COMMON_KEY_POLICY::retire_safety, KSM_KEY_POLICY::rfc5011, KSM_DENIAL_POLICY::saltlength, KSM_ZONE_POLICY::serial, SERIAL_TYPE, SetParamOnPolicy(), SetPolicyDefaults(), KSM_COMMON_KEY_POLICY::share_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_KEY_POLICY::standby_keys, StrAppend(), StrFree, StrStrdup(), StrStrtoi(), KSM_DENIAL_POLICY::ttl, KSM_COMMON_KEY_POLICY::ttl, KSM_SIGNATURE_POLICY::valdefault, KSM_SIGNATURE_POLICY::valdenial, KSM_POLICY::zone, and KSM_POLICY::zsk.

Referenced by cmd_setup(), and cmd_update().

int update_repositories ( )

Definition at line 4747 of file ksmutil.c.

References config, KsmImportRepository(), StrAppend(), and StrFree.

Referenced by cmd_setup(), and cmd_update().

int update_zones ( char *  zone_list_filename)
void usage ( )
void usage_backup ( )

Definition at line 402 of file ksmutil.c.

Referenced by main(), and usage().

void usage_control ( )

Definition at line 163 of file ksmutil.c.

Referenced by usage().

void usage_database ( )

Definition at line 428 of file ksmutil.c.

Referenced by main(), and usage().

void usage_general ( )

Use _r() functions on platforms that have. They are thread safe versions of the normal syslog functions. Platforms without _r() usually have thread safe normal functions.

Definition at line 147 of file ksmutil.c.

Referenced by usage().

void usage_key ( )
void usage_keydelete ( )

Definition at line 375 of file ksmutil.c.

Referenced by cmd_delkey(), usage(), and usage_key().

void usage_keydsseen ( )

Definition at line 363 of file ksmutil.c.

Referenced by cmd_dsseen(), usage(), and usage_key().

void usage_keyexport ( )

Definition at line 284 of file ksmutil.c.

Referenced by usage(), and usage_key().

void usage_keygen ( )

Definition at line 334 of file ksmutil.c.

Referenced by usage(), and usage_key().

void usage_keyimport ( )

Definition at line 295 of file ksmutil.c.

Referenced by usage(), and usage_key().

void usage_keykskretire ( )

Definition at line 354 of file ksmutil.c.

Referenced by cmd_kskretire(), usage(), and usage_key().

void usage_keykskrevoke ( )

Definition at line 345 of file ksmutil.c.

Referenced by cmd_kskrevoke().

void usage_keylist ( )

Definition at line 272 of file ksmutil.c.

Referenced by usage(), and usage_key().

void usage_keypurge ( )

Definition at line 324 of file ksmutil.c.

Referenced by main(), PurgeKeys(), usage(), and usage_key().

void usage_keyroll ( )

Definition at line 312 of file ksmutil.c.

Referenced by main(), usage(), and usage_key().

void usage_policy ( )

Definition at line 260 of file ksmutil.c.

References progname, usage_policyexport(), usage_policyimport(), usage_policylist(), and usage_policypurge().

Referenced by main().

void usage_policyexport ( )

Definition at line 231 of file ksmutil.c.

Referenced by usage(), and usage_policy().

void usage_policyimport ( )

Definition at line 239 of file ksmutil.c.

Referenced by usage(), and usage_policy().

void usage_policylist ( )

Definition at line 246 of file ksmutil.c.

Referenced by usage(), and usage_policy().

void usage_policypurge ( )

Definition at line 253 of file ksmutil.c.

Referenced by usage(), and usage_policy().

void usage_repo ( )

Definition at line 224 of file ksmutil.c.

Referenced by main(), and usage().

void usage_rollover ( )

Definition at line 420 of file ksmutil.c.

Referenced by main(), and usage().

void usage_setup ( )

Definition at line 155 of file ksmutil.c.

Referenced by usage().

void usage_update ( )

Definition at line 171 of file ksmutil.c.

Referenced by cmd_update(), and usage().

void usage_zone ( )

Definition at line 213 of file ksmutil.c.

References progname, usage_zoneadd(), usage_zonedel(), and usage_zonelist().

Referenced by cmd_addzone(), and main().

void usage_zoneadd ( )

Definition at line 182 of file ksmutil.c.

Referenced by usage(), and usage_zone().

void usage_zonedel ( )

Definition at line 197 of file ksmutil.c.

Referenced by usage(), and usage_zone().

void usage_zonelist ( )

Definition at line 206 of file ksmutil.c.

Referenced by usage(), and usage_zone().

void usage_zonelist2 ( )

Definition at line 436 of file ksmutil.c.

Referenced by main(), and usage().

Variable Documentation

char* config = (char *) OPENDNSSEC_CONFIG_FILE
char* o_algo = NULL

Definition at line 100 of file ksmutil.c.

Referenced by cmd_import(), and main().

char* o_cka_id = NULL

Definition at line 103 of file ksmutil.c.

Referenced by cmd_delkey(), cmd_dsseen(), cmd_import(), cmd_kskretire(), cmd_kskrevoke(), and main().

char* o_in_type = NULL

Definition at line 102 of file ksmutil.c.

Referenced by cmd_addzone(), and main().

char* o_input = NULL

Definition at line 101 of file ksmutil.c.

Referenced by cmd_addzone(), and main().

char* o_interval = NULL

Definition at line 105 of file ksmutil.c.

Referenced by cmd_genkeys(), and main().

char* o_keystate = NULL

Definition at line 99 of file ksmutil.c.

Referenced by cmd_exportkeys(), cmd_import(), ListKeys(), and main().

char* o_keytag = NULL

Definition at line 117 of file ksmutil.c.

Referenced by cmd_dsseen(), cmd_kskretire(), cmd_kskrevoke(), and main().

char* o_keytype = NULL

Definition at line 111 of file ksmutil.c.

Referenced by cmd_exportkeys(), cmd_import(), cmd_rollpolicy(), cmd_rollzone(), ListKeys(), and main().

char* o_out_type = NULL

Definition at line 107 of file ksmutil.c.

Referenced by cmd_addzone(), and main().

char* o_output = NULL

Definition at line 106 of file ksmutil.c.

Referenced by cmd_addzone(), cmd_dbbackup(), and main().

char* o_policy = NULL
char* o_repository = NULL

Definition at line 109 of file ksmutil.c.

Referenced by cmd_backup(), cmd_import(), cmd_listbackups(), and main().

char* o_retire = NULL

Definition at line 113 of file ksmutil.c.

Referenced by cmd_import(), and main().

char* o_signerconf = NULL

Definition at line 110 of file ksmutil.c.

Referenced by cmd_addzone(), and main().

char* o_size = NULL

Definition at line 104 of file ksmutil.c.

Referenced by cmd_import(), and main().

char* o_tdead = NULL

Definition at line 114 of file ksmutil.c.

Referenced by cmd_kskrevoke(), and main().

char* o_time = NULL

Definition at line 112 of file ksmutil.c.

Referenced by cmd_import(), and main().

char* o_zone = NULL
char* o_zonetotal = NULL

Definition at line 116 of file ksmutil.c.

Referenced by cmd_genkeys(), and main().

char* optarg

Referenced by cmdlParse(), and main().

int optind

Referenced by main().

const char* progname = NULL

Definition at line 96 of file ksmutil.c.

Referenced by main(), usage(), usage_key(), usage_policy(), and usage_zone().