OpenDNSSEC-enforcer 2.1.13
keystate_import_cmd.c File Reference
#include "config.h"
#include <getopt.h>
#include "cmdhandler.h"
#include "daemon/enforcercommands.h"
#include "daemon/engine.h"
#include "file.h"
#include "log.h"
#include "str.h"
#include "clientpipe.h"
#include "longgetopt.h"
#include "duration.h"
#include "libhsm.h"
#include "libhsmdns.h"
#include "db/key_data.h"
#include "db/db_error.h"
#include "keystate/keystate_import_cmd.h"
#include "keystate/keystate_list_cmd.h"

Go to the source code of this file.

Functions

int perform_hsmkey_import (int sockfd, db_connection_t *dbconn, const char *ckaid, const char *rep, const char *zonename, int bits, int alg, int keytype, unsigned int time)
int perform_keydata_import (int sockfd, db_connection_t *dbconn, const char *ckaid, const char *rep, const char *zonename, int alg, int keystate, int keytype, unsigned int time, int setmin, db_value_t *hsmkey_id)
int perform_keystate_import (int sockfd, db_connection_t *dbconn, const char *ckaid, const char *rep, const char *zonename, int keystate, int keytype, unsigned int time, db_value_t *hsmkeyid)

Variables

const int ksk_mapping [5][4] = {{0,0,0,4},{0,1,1,4},{1,2,2,4},{1,2,2,4},{3,2,2,4}}
const int zsk_mapping [5][4] = {{4,0,4,0},{4,1,4,0},{4,2,4,1},{4,2,4,2},{4,2,4,3}}
const int ds_at_parent [5] = {0,0,1,3,5}
struct cmd_func_block key_import_funcblock

Function Documentation

◆ perform_hsmkey_import()

◆ perform_keydata_import()

◆ perform_keystate_import()

Variable Documentation

◆ ds_at_parent

const int ds_at_parent[5] = {0,0,1,3,5}

◆ key_import_funcblock

struct cmd_func_block key_import_funcblock
Initial value:
= {
"key import", &usage, &help, NULL, NULL, &run, NULL
}

Definition at line 571 of file keystate_import_cmd.c.

◆ ksk_mapping

const int ksk_mapping[5][4] = {{0,0,0,4},{0,1,1,4},{1,2,2,4},{1,2,2,4},{3,2,2,4}}

Definition at line 53 of file keystate_import_cmd.c.

Referenced by perform_keystate_import().

◆ zsk_mapping

const int zsk_mapping[5][4] = {{4,0,4,0},{4,1,4,0},{4,2,4,1},{4,2,4,2},{4,2,4,3}}

Definition at line 54 of file keystate_import_cmd.c.

Referenced by perform_keystate_import().