Searched refs:rootCert (Results 1 – 6 of 6) sorted by relevance
/base/update/updater/services/package/pkg_verify/ |
D | cert_verify.cpp | 54 if (rootInfo_.rootCert != nullptr) { in ~SingleCertHelper() 55 X509_free(rootInfo_.rootCert); in ~SingleCertHelper() 78 X509 *rootCert = GetX509CertFromPemFile(Utils::GetCertName()); in InitRootCert() local 79 if (rootCert == nullptr) { in InitRootCert() 84 rootInfo_.rootCert = rootCert; in InitRootCert() 85 rootInfo_.subject = GetX509CertSubjectName(rootCert); in InitRootCert() 86 rootInfo_.issuer = GetX509CertIssuerName(rootCert); in InitRootCert() 100 return ((VerifyX509CertByIssuerCert(cert, rootInfo_.rootCert)) ? 0 : -1); in VerifySingleCert()
|
/base/security/appverify/interfaces/innerkits/appverify/src/init/ |
D | trusted_root_ca.cpp | 41 for (auto rootCert : rootCerts) { in ~TrustedRootCa() local 42 X509_free(rootCert.second); in ~TrustedRootCa() 44 for (auto rootCert : rootCertsForTest) { in ~TrustedRootCa() local 45 X509_free(rootCert.second); in ~TrustedRootCa() 65 for (auto& rootCert : rootCertsForTest) { in DisableDebug() local 66 X509_free(rootCert.second); in DisableDebug() 86 for (auto& rootCert : rootCerts) { in Recovery() local 87 X509_free(rootCert.second); in Recovery()
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_x509_certificate_test.cpp | 351 HcfX509Certificate *rootCert = nullptr; variable 356 HcfResult ret = HcfX509CertificateCreate(&root, &rootCert); 358 EXPECT_NE(rootCert, nullptr); 360 ret = rootCert->base.getPublicKey((HcfCertificate *)rootCert, &rootkeyOut); 371 EXPECT_NE(rootCert, nullptr); 375 HcfObjDestroy(rootCert); 382 HcfX509Certificate *rootCert = nullptr; variable 387 HcfResult ret = HcfX509CertificateCreate(&root, &rootCert); 389 EXPECT_NE(rootCert, nullptr); 391 ret = rootCert->base.getPublicKey((HcfCertificate *)rootCert, &rootkeyOut); [all …]
|
/base/update/updater/services/include/package/ |
D | cert_verify.h | 26 X509 *rootCert = nullptr; member
|
/base/security/appverify/interfaces/innerkits/appverify_lite/include/ |
D | mbedtls_pkcs7.h | 93 mbedtls_x509_crt *rootCert; member
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | mbedtls_pkcs7.c | 773 signer->rootCert = &g_rootCaG2Cert; in BuildSignerCertPath() 1021 static int VerifyClicert(mbedtls_x509_crt *clicert, mbedtls_x509_crt *rootCert, const Pkcs7 *pkcs7) in VerifyClicert() argument 1024 int rc = mbedtls_x509_crt_verify(clicert, rootCert, in VerifyClicert() 1066 rc = VerifyClicert(clicert, signer->rootCert, pkcs7); in PKCS7_VerifyCertsChain()
|