Skip to content

Commit

Permalink
Fix add-profile command to create token objects
Browse files Browse the repository at this point in the history
Signed-off-by: Zoltan Fridrich <[email protected]>
  • Loading branch information
ZoltanFridrich committed Sep 21, 2023
1 parent 0a11e88 commit 42b1025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p11-kit/add-profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ add_profile (const char *token_str,
CK_FUNCTION_LIST **modules = NULL;
P11KitUri *uri = NULL;
P11KitIter *iter = NULL;
CK_BBOOL token = CK_TRUE;
CK_OBJECT_CLASS klass = CKO_PROFILE;
CK_ATTRIBUTE template[] = {
{ CKA_CLASS, &klass, sizeof (klass) },
{ CKA_TOKEN, &token, sizeof (token) },
{ CKA_PROFILE_ID, &profile, sizeof (profile) }
};
CK_ULONG template_len = sizeof (template) / sizeof (template[0]);
Expand Down

0 comments on commit 42b1025

Please sign in to comment.