Home
last modified time | relevance | path

Searched refs:crlsBuffer (Results 1 – 3 of 3) sorted by relevance

/base/security/appverify/interfaces/innerkits/appverify/src/init/
Dhap_crl_manager.cpp63 HapByteBuffer crlsBuffer; in Init() local
64 bool ret = ReadCrls(crlsBuffer); in Init()
65 if (ret && crlsBuffer.HasRemaining()) { in Init()
66 ParseCrls(crlsBuffer); in Init()
72 bool HapCrlManager::ParseCrls(HapByteBuffer& crlsBuffer) in ParseCrls() argument
75 if (!crlsBuffer.GetUInt32(0, numOfCrl)) { in ParseCrls()
81 crlsBuffer.SetPosition(hasUsed); in ParseCrls()
83 while (numOfCrl && hasUsed <= crlsBuffer.GetCapacity()) { in ParseCrls()
85 if (!crlsBuffer.GetInt32(crlLen)) { in ParseCrls()
90 … X509_CRL* crl = HapCertVerifyOpensslUtils::GetX509CrlFromDerBuffer(crlsBuffer, hasUsed, crlLen); in ParseCrls()
[all …]
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_crl_manager_test.cpp133 HapByteBuffer crlsBuffer; variable
134 ASSERT_TRUE(hapCrlManager.ReadCrls(crlsBuffer));
135 ASSERT_TRUE(crlsBuffer.HasRemaining());
136 ASSERT_TRUE(hapCrlManager.ParseCrls(crlsBuffer));
/base/security/appverify/interfaces/innerkits/appverify/include/init/
Dhap_crl_manager.h51 DLL_EXPORT bool ReadCrls(HapByteBuffer& crlsBuffer);
52 DLL_EXPORT bool ParseCrls(HapByteBuffer& crlsBuffer);