OpenDNSSEC-enforcer  2.1.12
enforcercommands.c
Go to the documentation of this file.
1 #include "config.h"
2 
3 #include "file.h"
4 #include "str.h"
5 #include "locks.h"
6 #include "log.h"
7 #include "status.h"
8 #include "util.h"
9 #include "daemon/engine.h"
10 #include "cmdhandler.h"
11 #include "enforcercommands.h"
12 #include "db/db_connection.h"
13 
14 /* commands to handle */
16 #include "policy/policy_list_cmd.h"
17 #include "daemon/help_cmd.h"
18 #include "daemon/time_leap_cmd.h"
19 #include "daemon/queue_cmd.h"
20 #include "daemon/verbosity_cmd.h"
21 #include "daemon/ctrl_cmd.h"
26 #include "enforcer/enforce_cmd.h"
30 #include "keystate/zone_list_cmd.h"
31 #include "keystate/zone_del_cmd.h"
32 #include "keystate/zone_add_cmd.h"
41 #include "keystate/key_purge_cmd.h"
46 #include "signconf/signconf_cmd.h"
49 
50 static char const * cmdh_str = "cmdhandler";
51 
52 static struct cmd_func_block* enforcecommands[] = {
53  /* Thoughts has gone into the ordering of this list, it affects
54  * the output of the help command */
64 
69 
72 
82 
85 
87 
90 
91 
98  NULL
99 };
100 
101 struct cmd_func_block** enforcercommands = enforcecommands;
102 
104 getglobalcontext(cmdhandler_ctx_type* context)
105 {
106  return (engine_type*) context->globalcontext;
107 }
108 
110 getconnectioncontext(cmdhandler_ctx_type* context)
111 {
112  return (db_connection_t*) context->localcontext;
113 }
struct cmd_func_block backup_funcblock
struct cmd_func_block ctrl_funcblock
Definition: ctrl_cmd.c:112
struct cmd_func_block enforce_funcblock
Definition: enforce_cmd.c:136
db_connection_t * getconnectioncontext(cmdhandler_ctx_type *context)
struct cmd_func_block ** enforcercommands
engine_type * getglobalcontext(cmdhandler_ctx_type *context)
struct cmd_func_block help_funcblock
Definition: help_cmd.c:100
struct cmd_func_block key_generate_funcblock
struct cmd_func_block key_purge_funcblock
struct cmd_func_block key_ds_gone_funcblock
struct cmd_func_block key_ds_retract_funcblock
struct cmd_func_block key_ds_seen_funcblock
struct cmd_func_block key_ds_submit_funcblock
struct cmd_func_block key_export_funcblock
struct cmd_func_block key_import_funcblock
struct cmd_func_block key_list_funcblock
struct cmd_func_block key_rollover_funcblock
struct cmd_func_block policy_export_funcblock
struct cmd_func_block policy_import_funcblock
struct cmd_func_block policy_list_funcblock
struct cmd_func_block policy_purge_funcblock
struct cmd_func_block resalt_funcblock
struct cmd_func_block queue_funcblock
Definition: queue_cmd.c:124
struct cmd_func_block flush_funcblock
Definition: queue_cmd.c:159
struct cmd_func_block repositorylist_funcblock
struct cmd_func_block rollover_list_funcblock
struct cmd_func_block signconf_funcblock
Definition: signconf_cmd.c:74
struct cmd_func_block time_leap_funcblock
struct cmd_func_block update_all_funcblock
struct cmd_func_block update_conf_funcblock
struct cmd_func_block update_repositorylist_funcblock
struct cmd_func_block verbosity_funcblock
struct cmd_func_block zone_add_funcblock
Definition: zone_add_cmd.c:411
struct cmd_func_block zone_del_funcblock
Definition: zone_del_cmd.c:314
struct cmd_func_block zone_list_funcblock
struct cmd_func_block zone_set_policy_funcblock
struct cmd_func_block zonelist_export_funcblock
struct cmd_func_block zonelist_import_funcblock