From 8a3ef7d616de1cfd9832a293efe7660cf75c5f86 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Tue, 12 Nov 2024 11:34:18 +0100 Subject: [PATCH] Fix a typo in `Mecahnisms` Signed-off-by: Wiktor Kwapisiewicz --- src/lib/SoftHSM.cpp | 4 ++-- src/lib/SoftHSM.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/SoftHSM.cpp b/src/lib/SoftHSM.cpp index 02c0f95ec..54f9089f2 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 4c8f5fe8e..e92a1772c 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); };