Skip to content

Commit

Permalink
pkcs11-tool: Fix int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
xhanulik authored and frankmorgner committed Feb 15, 2024
1 parent 1774fd0 commit eda86e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/pkcs11-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -7198,7 +7198,7 @@ static int wrap_unwrap(CK_SESSION_HANDLE session,

/* Try to decrypt */
key = getVALUE(session, cipherKeyObject, &key_len_ul);
key_len = key_len_ul;
key_len = (int)key_len_ul;
if (key == NULL) {
fprintf(stderr, "Could not get unwrapped key\n");
return 1;
Expand Down

0 comments on commit eda86e4

Please sign in to comment.