mirror of
https://gitee.com/openharmony/security_appverify
synced 2024-11-23 14:39:58 +00:00
commit
56253f6a37
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user