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 "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.

## Macros

#define | NARGV 18

## 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

## Macro Definition Documentation

## NARGV

#define NARGV 18

## Function Documentation

## perform_hsmkey_import()

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
| ) |  |

Definition at line 62 of file keystate_import_cmd.c.

## perform_keydata_import()

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
| ) |  |

Definition at line 133 of file keystate_import_cmd.c.

## perform_keystate_import()

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
| ) |  |

Definition at line 212 of file keystate_import_cmd.c.

## Variable Documentation

## ds_at_parent

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

Definition at line 54 of file keystate_import_cmd.c.

Referenced by key_data_set_ds_at_parent().

## key_import_funcblock

struct cmd_func_block key_import_funcblock

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

Definition at line 588 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 52 of file keystate_import_cmd.c.

## 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 53 of file keystate_import_cmd.c.