diff --git a/src/lib/SoftHSM.cpp b/src/lib/SoftHSM.cpp index 02c0f95e..54f9089f 100644 --- a/src/lib/SoftHSM.cpp +++ b/src/lib/SoftHSM.cpp @@ -597,7 +597,7 @@ CK_RV SoftHSM::C_Initialize(CK_VOID_PTR pInitArgs) } // Load the enabled list of algorithms - prepareSupportedMecahnisms(mechanisms_table); + prepareSupportedMechanisms(mechanisms_table); isRemovable = Configuration::i()->getBool("slots.removable", false); @@ -720,7 +720,7 @@ CK_RV SoftHSM::C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) return token->getTokenInfo(pInfo); } -void SoftHSM::prepareSupportedMecahnisms(std::map &t) +void SoftHSM::prepareSupportedMechanisms(std::map &t) { #ifndef WITH_FIPS t["CKM_MD5"] = CKM_MD5; diff --git a/src/lib/SoftHSM.h b/src/lib/SoftHSM.h index 4c8f5fe8..e92a1772 100644 --- a/src/lib/SoftHSM.h +++ b/src/lib/SoftHSM.h @@ -490,7 +490,7 @@ class SoftHSM CK_RV MechParamCheckRSAPKCSOAEP(CK_MECHANISM_PTR pMechanism); bool isMechanismPermitted(OSObject* key, CK_MECHANISM_PTR pMechanism); - void prepareSupportedMecahnisms(std::map &t); + void prepareSupportedMechanisms(std::map &t); bool detectFork(void); };