Skip to content

Commit eba7ac6

Browse files
authored
Fix incorrect call to isMechanismPermitted (#835)
This fixes build failure introduced in f3c0156
1 parent f3c0156 commit eba7ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/SoftHSM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ CK_RV SoftHSM::AsymEncryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMec
24552455
return CKR_KEY_FUNCTION_NOT_PERMITTED;
24562456

24572457
// Check if the specified mechanism is allowed for the key
2458-
if (!isMechanismPermitted(key, pMechanism))
2458+
if (!isMechanismPermitted(key, pMechanism->mechanism))
24592459
return CKR_MECHANISM_INVALID;
24602460

24612461
// Get key info

0 commit comments

Comments
 (0)