hsm_ctx_t Struct Reference

`#include <libhsm.h>`

## Data Fields

hsm_session_t * | session [HSM_MAX_SESSIONS]
size_t | session_count
int | error
const char * | error_action
char | error_message [HSM_ERROR_MSGSIZE]
ldns_rbtree_t * | keycache
pthread_mutex_t * | keycache_lock

## Detailed Description

HSM context to keep track of sessions

Definition at line 131 of file libhsm.h.

## Field Documentation

## error

int hsm_ctx_t::error

static string describing the action we were trying to do when the first error happened

Definition at line 136 of file libhsm.h.

Referenced by hsm_ctx_set_error(), and hsm_get_error().

## error_action

const char* hsm_ctx_t::error_action

static string describing the first error

Definition at line 140 of file libhsm.h.

Referenced by hsm_ctx_set_error(), and hsm_get_error().

## error_message

char hsm_ctx_t::error_message[HSM_ERROR_MSGSIZE]

Definition at line 143 of file libhsm.h.

Referenced by hsm_ctx_set_error(), and hsm_get_error().

## keycache

ldns_rbtree_t* hsm_ctx_t::keycache

Definition at line 145 of file libhsm.h.

Referenced by keycache_create(), keycache_destroy(), and keycache_lookup().

## keycache_lock

pthread_mutex_t* hsm_ctx_t::keycache_lock

Definition at line 146 of file libhsm.h.

Referenced by keycache_lookup().

## session

hsm_session_t* hsm_ctx_t::session[HSM_MAX_SESSIONS]

HSM sessions

Definition at line 132 of file libhsm.h.

Referenced by hsm_check_context(), hsm_print_ctx(), hsm_print_tokeninfo(), hsm_random_buffer(), and hsm_token_attached().

## session_count

size_t hsm_ctx_t::session_count

number of configured HSMs non-zero if the last operation failed (only the first error will be set)

Definition at line 133 of file libhsm.h.

Referenced by hsm_check_context(), hsm_list_keys(), hsm_print_ctx(), hsm_print_tokeninfo(), hsm_random_buffer(), and hsm_token_attached().

The documentation for this struct was generated from the following file:

- src/lib/libhsm.h