Skip to content

Commit

Permalink
Make function lists const
Browse files Browse the repository at this point in the history
  • Loading branch information
qpernil committed Jun 22, 2021
1 parent 313a935 commit b70f96a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ykcs11/ykcs11.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ static void *global_mutex;
static uint64_t pid;
int verbose;

static CK_FUNCTION_LIST function_list;
static CK_FUNCTION_LIST_3_0 function_list_3;
static const CK_FUNCTION_LIST function_list;
static const CK_FUNCTION_LIST_3_0 function_list_3;

static CK_SESSION_HANDLE get_session_handle(ykcs11_session_t *session) {
return (CK_SESSION_HANDLE)(session - sessions + 1);
Expand Down Expand Up @@ -4134,7 +4134,7 @@ CK_DEFINE_FUNCTION(CK_RV, C_MessageVerifyFinal)
return CKR_FUNCTION_NOT_SUPPORTED;
}

static CK_FUNCTION_LIST function_list = {
static const CK_FUNCTION_LIST function_list = {
{CRYPTOKI_LEGACY_VERSION_MAJOR, CRYPTOKI_LEGACY_VERSION_MINOR},
C_Initialize,
C_Finalize,
Expand Down Expand Up @@ -4206,7 +4206,7 @@ static CK_FUNCTION_LIST function_list = {
C_WaitForSlotEvent,
};

static CK_FUNCTION_LIST_3_0 function_list_3 = {
static const CK_FUNCTION_LIST_3_0 function_list_3 = {
{CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR},
C_Initialize,
C_Finalize,
Expand Down

0 comments on commit b70f96a

Please sign in to comment.