OpenDNSSEC-signer  2.1.12
Functions
hsm.h File Reference
#include "config.h"
#include "status.h"
#include "signer/keys.h"
#include "libhsm.h"
#include <ctype.h>
#include <stdint.h>
#include <ldns/ldns.h>
#include <libhsmdns.h>

Go to the source code of this file.

Functions

ods_status lhsm_get_key (hsm_ctx_t *ctx, ldns_rdf *owner, key_type *key_id, int skip_hsm_access)
 
ldns_rr * lhsm_sign (hsm_ctx_t *ctx, ldns_rr_list *rrset, key_type *key_id, ldns_rdf *owner, time_t inception, time_t expiration)
 

Function Documentation

◆ lhsm_get_key()

ods_status lhsm_get_key ( hsm_ctx_t *  ctx,
ldns_rdf *  owner,
key_type key_id,
int  skip_hsm_access 
)

Hardware Security Module support. Get key from one of the HSMs, store the DNSKEY and HSM key.

Parameters
[in]ctxHSM context
[in]ownerthe zone owner name
[in]key_idkey credentials
Returns
ods_status status

Get key from one of the HSMs.

Definition at line 81 of file hsm.c.

◆ lhsm_sign()

ldns_rr* lhsm_sign ( hsm_ctx_t *  ctx,
ldns_rr_list *  rrset,
key_type key_id,
ldns_rdf *  owner,
time_t  inception,
time_t  expiration 
)

Get RRSIG from one of the HSMs, given a RRset and a key.

Parameters
[in]ctxHSM context
[in]rrsetRRset to be signed
[in]key_idkey credentials
[in]ownerowner of the keys
[in]inceptionsignature inception
[in]expirationsignature expiration
Returns
ldns_rr* RRSIG record

Get RRSIG from one of the HSMs, given a RRset and a key.

Definition at line 138 of file hsm.c.