Skip to content

Commit

Permalink
Merge pull request softhsm#760 from wiktor-k/wiktor/fix-typo
Browse files Browse the repository at this point in the history
Fix a typo in `Mecahnisms`
  • Loading branch information
jschlyter authored Nov 29, 2024
2 parents fe6e1b2 + 8a3ef7d commit 2b72281
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 2b72281

Please sign in to comment.