Merge pull request #1940 from SparkiDev/pkcs11_cast

Fix for clang - cast down
This commit is contained in:
toddouska
2018-11-28 08:06:28 -08:00
committed by GitHub

View File

@ -215,7 +215,7 @@ void wc_Pkcs11Token_Final(Pkcs11Token* token)
if (token != NULL && token->func != NULL) {
token->func->C_CloseAllSessions(token->slotId);
token->handle = NULL_PTR;
ForceZero(token->userPin, token->userPinSz);
ForceZero(token->userPin, (word32)token->userPinSz);
}
}