OpenDNSSEC-enforcer
2.1.12
|
Go to the source code of this file.
void hsm_key_factory_deinit | ( | void | ) |
Definition at line 84 of file hsm_key_factory.c.
int hsm_key_factory_delete_key | ( | const db_connection_t * | connection | ) |
Delete keys that are marked DELETE from the database and the HSM itself,
Definition at line 810 of file hsm_key_factory.c.
int hsm_key_factory_generate | ( | engine_type * | engine, |
const db_connection_t * | connection, | ||
const policy_t * | policy, | ||
const policy_key_t * | policy_key, | ||
time_t | duration | ||
) |
int hsm_key_factory_generate_all | ( | engine_type * | engine, |
const db_connection_t * | connection, | ||
time_t | duration | ||
) |
int hsm_key_factory_generate_policy | ( | engine_type * | engine, |
const db_connection_t * | connection, | ||
const policy_t * | policy, | ||
time_t | duration | ||
) |
hsm_key_t* hsm_key_factory_get_key | ( | engine_type * | engine, |
const db_connection_t * | connection, | ||
const policy_key_t * | policy_key, | ||
hsm_key_state_t | hsm_key_state | ||
) |
Allocate a private or shared HSM key for the policy key provided. This will also schedule a task for generating more keys if needed.
[in] | engine | an engine_type. |
[in] | connection | a database connection. |
[in] | policy_key | a policy key. |
[in] | hsm_key_state | indicate if its a private or shared key that should be fetched (HSM_KEY_STATE_PRIVATE | HSM_KEY_STATE_SHARED). |
Definition at line 629 of file hsm_key_factory.c.
int hsm_key_factory_release_key | ( | hsm_key_t * | hsm_key, |
const db_connection_t * | connection | ||
) |
Release a key, if its not used anyore it will be marked DELETE.
Definition at line 763 of file hsm_key_factory.c.
int hsm_key_factory_release_key_id | ( | const db_value_t * | hsm_key_id, |
const db_connection_t * | connection | ||
) |
Release a key, if its not used anyore it will be marked DELETE.
[in] | hsm_key_id | a db_value_t pointer with the hsm_key database id. |
Definition at line 704 of file hsm_key_factory.c.
int hsm_key_factory_schedule_generate_all | ( | engine_type * | engine, |
time_t | duration | ||
) |
Schedule a task to generate keys for all policies and policy keys we currently have.
[in] | engine | an engine_type. |
[in] | duration | a time_t specifying the duration to generate keys from, if its zero then the duration from conf.xml is taken. |
Definition at line 598 of file hsm_key_factory.c.
int hsm_key_factory_schedule_generate_policy | ( | engine_type * | engine, |
const policy_t * | policy_orig, | ||
time_t | duration | ||
) |
Schedule a task to generate keys for a specific policy.
[in] | engine | an engine_type. \prama[in] policy_orig a policy_t pointer to the policy we will generate keys for. |
[in] | duration | a time_t specifying the duration to generate keys from, if its zero then the duration from conf.xml is taken. |
Definition at line 560 of file hsm_key_factory.c.