Data Fields

hsm_ctx_t Struct Reference

#include <libhsm.h>

Collaboration diagram for hsm_ctx_t:
Collaboration graph
[legend]

Data Fields

hsm_session_tsession [HSM_MAX_SESSIONS]
size_t session_count
int error
const char * error_action
char error_message [HSM_ERROR_MSGSIZE]

Detailed Description

HSM context to keep track of sessions

Definition at line 96 of file libhsm.h.


Field Documentation

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

Definition at line 103 of file libhsm.h.

Referenced by hsm_get_error().

static string describing the first error

Definition at line 107 of file libhsm.h.

Referenced by hsm_get_error(), and sign().

char hsm_ctx_t::error_message[HSM_ERROR_MSGSIZE]

Definition at line 108 of file libhsm.h.

Referenced by hsm_get_error(), and sign().

hsm_session_t* hsm_ctx_t::session[HSM_MAX_SESSIONS]

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

Definition at line 98 of file libhsm.h.

Referenced by hsm_count_keys(), hsm_detach(), hsm_list_keys(), hsm_nsec3_hash_name(), hsm_print_ctx(), hsm_print_tokeninfo(), hsm_random_buffer(), and hsm_token_attached().


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