Skip to content

Commit

Permalink
Fix a typo in Mecahnisms
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
  • Loading branch information
wiktor-k committed Nov 29, 2024
1 parent f7883c2 commit 8a3ef7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/SoftHSM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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<std::string, CK_MECHANISM_TYPE> &t)
void SoftHSM::prepareSupportedMechanisms(std::map<std::string, CK_MECHANISM_TYPE> &t)
{
#ifndef WITH_FIPS
t["CKM_MD5"] = CKM_MD5;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/SoftHSM.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, CK_MECHANISM_TYPE> &t);
void prepareSupportedMechanisms(std::map<std::string, CK_MECHANISM_TYPE> &t);
bool detectFork(void);
};

0 comments on commit 8a3ef7d

Please sign in to comment.