Searched refs:certVisitSign (Results 1 – 5 of 5) sorted by relevance
/base/security/appverify/interfaces/innerkits/appverify/include/util/ |
D | hap_cert_verify_openssl_utils.h | 35 …L_EXPORT static void GenerateCertSignFromCertStack(STACK_OF(X509)* certs, CertSign& certVisitSign); 36 DLL_EXPORT static void ClearCertVisitSign(CertSign& certVisitSign); 37 DLL_EXPORT static bool GetCertsChain(CertChain& certsChain, CertSign& certVisitSign); 54 DLL_EXPORT static X509* FindCertOfIssuer(X509* cert, CertSign& certVisitSign);
|
D | hap_verify_openssl_utils.h | 77 Pkcs7Context& pkcs7Context, CertSign& certVisitSign);
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
D | hap_cert_verify_openssl_utils_test.cpp | 208 CertSign certVisitSign; variable 209 certVisitSign[certX509] = false; 210 ASSERT_FALSE(HapCertVerifyOpensslUtils::GetCertsChain(certsChain, certVisitSign)); 216 ASSERT_FALSE(HapCertVerifyOpensslUtils::GetCertsChain(certsChain, certVisitSign)); 217 certVisitSign[certX509] = true; 218 ASSERT_FALSE(HapCertVerifyOpensslUtils::GetCertsChain(certsChain, certVisitSign)); 434 CertSign certVisitSign; variable 435 HapCertVerifyOpensslUtils::GenerateCertSignFromCertStack(nullptr, certVisitSign); 436 ASSERT_TRUE(HapCertVerifyOpensslUtils::FindCertOfIssuer(nullptr, certVisitSign) == nullptr);
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
D | hap_cert_verify_openssl_utils.cpp | 264 …rtVerifyOpensslUtils::GenerateCertSignFromCertStack(STACK_OF(X509)* certs, CertSign& certVisitSign) in GenerateCertSignFromCertStack() argument 275 certVisitSign[cert] = false; in GenerateCertSignFromCertStack() 279 void HapCertVerifyOpensslUtils::ClearCertVisitSign(CertSign& certVisitSign) in ClearCertVisitSign() argument 281 for (auto& certPair : certVisitSign) { in ClearCertVisitSign() 286 bool HapCertVerifyOpensslUtils::GetCertsChain(CertChain& certsChain, CertSign& certVisitSign) in GetCertsChain() argument 288 if (certsChain.empty() || certVisitSign.empty()) { in GetCertsChain() 295 while ((issuerCert = FindCertOfIssuer(cert, certVisitSign)) != nullptr) { in GetCertsChain() 297 certVisitSign[issuerCert] = true; in GetCertsChain() 317 X509* HapCertVerifyOpensslUtils::FindCertOfIssuer(X509* cert, CertSign& certVisitSign) in FindCertOfIssuer() argument 325 for (auto certPair : certVisitSign) { in FindCertOfIssuer()
|
D | hap_verify_openssl_utils.cpp | 77 CertSign certVisitSign; in GetCertChains() local 78 HapCertVerifyOpensslUtils::GenerateCertSignFromCertStack(p7->d.sign->cert, certVisitSign); in GetCertChains() 108 HapCertVerifyOpensslUtils::ClearCertVisitSign(certVisitSign); in GetCertChains() 109 certVisitSign[cert] = true; in GetCertChains() 110 … if (!VerifyCertChain(pkcs7Context.certChains[i], p7, signInfo, pkcs7Context, certVisitSign)) { in GetCertChains() 119 PKCS7_SIGNER_INFO* signInfo, Pkcs7Context& pkcs7Context, CertSign& certVisitSign) in VerifyCertChain() argument 121 if (!HapCertVerifyOpensslUtils::GetCertsChain(certsChain, certVisitSign)) { in VerifyCertChain()
|