!20 修复issue:代码中参数的拼写有误

Merge pull request !20 from HJ/master
This commit is contained in:
openharmony_ci 2021-06-18 14:57:49 +08:00 committed by Gitee
commit 56253f6a37
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ private:
bool VerifyAppPkc7AndParseProfile(Pkcs7Context& pkcs7Context, HapByteBuffer& hapProfileBlock,
HapVerifyResult& hapVerifyV1Result);
bool VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context, const HapByteBuffer& hapProfileBlock,
HapVerifyResult& hapVerifyV1Result, bool& profileNeadWriteCrl);
HapVerifyResult& hapVerifyV1Result, bool& profileNeedWriteCrl);
bool VerifyAppPkcs7(Pkcs7Context& pkcs7Context, const HapByteBuffer& hapSignatureBlock);
bool VerifyAppSource(Pkcs7Context& pkcs7Context, Pkcs7Context& profileContext);
DLL_EXPORT bool GetDigestAndAlgorithm(Pkcs7Context& digest);

View File

@ -139,7 +139,7 @@ bool HapVerifyV2::VerifyAppPkcs7(Pkcs7Context& pkcs7Context, const HapByteBuffer
}
bool HapVerifyV2::VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context,
const HapByteBuffer& hapProfileBlock, HapVerifyResult& hapVerifyV1Result, bool& profileNeadWriteCrl)
const HapByteBuffer& hapProfileBlock, HapVerifyResult& hapVerifyV1Result, bool& profileNeedWriteCrl)
{
std::string certSubject;
if (!HapCertVerifyOpensslUtils::GetSubjectFromX509(pkcs7Context.certChains[0][0], certSubject)) {
@ -194,7 +194,7 @@ bool HapVerifyV2::VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context,
}
hapVerifyV1Result.SetProvisionInfo(provisionInfo);
profileNeadWriteCrl = profileContext.needWriteCrl;
profileNeedWriteCrl = profileContext.needWriteCrl;
return true;
}