Skip to content

Commit 8a3ef7d

Browse files
committed
Fix a typo in Mecahnisms
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
1 parent f7883c2 commit 8a3ef7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/SoftHSM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ CK_RV SoftHSM::C_Initialize(CK_VOID_PTR pInitArgs)
597597
}
598598

599599
// Load the enabled list of algorithms
600-
prepareSupportedMecahnisms(mechanisms_table);
600+
prepareSupportedMechanisms(mechanisms_table);
601601

602602
isRemovable = Configuration::i()->getBool("slots.removable", false);
603603

@@ -720,7 +720,7 @@ CK_RV SoftHSM::C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo)
720720
return token->getTokenInfo(pInfo);
721721
}
722722

723-
void SoftHSM::prepareSupportedMecahnisms(std::map<std::string, CK_MECHANISM_TYPE> &t)
723+
void SoftHSM::prepareSupportedMechanisms(std::map<std::string, CK_MECHANISM_TYPE> &t)
724724
{
725725
#ifndef WITH_FIPS
726726
t["CKM_MD5"] = CKM_MD5;

src/lib/SoftHSM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class SoftHSM
490490
CK_RV MechParamCheckRSAPKCSOAEP(CK_MECHANISM_PTR pMechanism);
491491

492492
bool isMechanismPermitted(OSObject* key, CK_MECHANISM_PTR pMechanism);
493-
void prepareSupportedMecahnisms(std::map<std::string, CK_MECHANISM_TYPE> &t);
493+
void prepareSupportedMechanisms(std::map<std::string, CK_MECHANISM_TYPE> &t);
494494
bool detectFork(void);
495495
};
496496

0 commit comments

Comments
 (0)