Home
last modified time | relevance | path

Searched refs:certCRLCollections (Results 1 - 8 of 8) sorted by relevance

/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_test_common.cpp372 HcfCertCRLCollectionArray &certCRLCollections) in BuildCollectionArr()
411 certCRLCollections.data = static_cast<HcfCertCrlCollection **>(CfMalloc(1 * sizeof(HcfCertCrlCollection *), 0)); in BuildCollectionArr()
412 ASSERT_NE(certCRLCollections.data, nullptr); in BuildCollectionArr()
413 certCRLCollections.data[0] = x509CertCrlCollection; in BuildCollectionArr()
414 certCRLCollections.count = 1; in BuildCollectionArr()
422 void FreeCertCrlCollectionArr(HcfCertCRLCollectionArray &certCRLCollections) in FreeCertCrlCollectionArr() argument
424 for (uint32_t i = 0; i < certCRLCollections.count; ++i) { in FreeCertCrlCollectionArr()
425 HcfCertCrlCollection *collection = certCRLCollections.data[i]; in FreeCertCrlCollectionArr()
428 CfFree(certCRLCollections.data); in FreeCertCrlCollectionArr()
429 certCRLCollections in FreeCertCrlCollectionArr()
371 BuildCollectionArr(const CfEncodingBlob *certInStream, const CfEncodingBlob *crlInStream, HcfCertCRLCollectionArray &certCRLCollections) BuildCollectionArr() argument
[all...]
H A Dcrypto_x509_cert_chain_test.cpp834 ASSERT_EQ(pCertChainValidateParams.certCRLCollections, nullptr); // test in HWTEST_F()
1430 HcfCertCRLCollectionArray certCRLCollections = { 0 }; in HWTEST_F() local
1431 BuildCollectionArr(&g_inStreamChainDataPemRoot, &g_crlDerInStream, certCRLCollections); in HWTEST_F()
1435 pCertChainValidateParams.certCRLCollections = &certCRLCollections; in HWTEST_F()
1444 FreeCertCrlCollectionArr(certCRLCollections); in HWTEST_F()
1456 HcfCertCRLCollectionArray certCRLCollections = { 0 }; in HWTEST_F() local
1457 BuildCollectionArr(&g_inStreamChainDataPemMid, &g_inStreamChainDataPemMidCRL, certCRLCollections); in HWTEST_F()
1461 pCertChainValidateParams.certCRLCollections = &certCRLCollections; in HWTEST_F()
1479 HcfCertCRLCollectionArray certCRLCollections = { 0 }; HWTEST_F() local
1558 HcfCertCRLCollectionArray certCRLCollections = { 0 }; HWTEST_F() local
1809 HcfCertCRLCollectionArray *certCRLCollections = BuildX509CertMatchParamsData() local
[all...]
/base/security/certificate_framework/test/fuzztest/v1.0/x509certchain_fuzzer/
H A Dx509certchain_fuzzer.cpp535 HcfCertCRLCollectionArray &certCRLCollections) in BuildCollectionArrNoCRL()
565 certCRLCollections.data = static_cast<HcfCertCrlCollection **>(CfMalloc(1 * sizeof(HcfCertCrlCollection *), in BuildCollectionArrNoCRL()
567 if (certCRLCollections.data == nullptr) { in BuildCollectionArrNoCRL()
570 certCRLCollections.data[0] = x509CertCrlCollection; in BuildCollectionArrNoCRL()
571 certCRLCollections.count = 1; in BuildCollectionArrNoCRL()
579 CfFree(certCRLCollections.data); in BuildCollectionArrNoCRL()
584 static void FreeCertCrlCollectionArr1(HcfCertCRLCollectionArray &certCRLCollections) in FreeCertCrlCollectionArr1() argument
586 for (uint32_t i = 0; i < certCRLCollections.count; ++i) { in FreeCertCrlCollectionArr1()
587 HcfCertCrlCollection *collection = certCRLCollections.data[i]; in FreeCertCrlCollectionArr1()
590 CfFree(certCRLCollections in FreeCertCrlCollectionArr1()
534 BuildCollectionArrNoCRL(const CfEncodingBlob *certInStream, HcfCertCRLCollectionArray &certCRLCollections) BuildCollectionArrNoCRL() argument
598 HcfCertCRLCollectionArray *certCRLCollections = nullptr; BuildX509CertMatchParamsDataNoCRL() local
[all...]
/base/security/certificate_framework/interfaces/inner_api/certificate/
H A Dx509_cert_chain_validate_params.h76 HcfCertCRLCollectionArray *certCRLCollections; // Array<CertCRLCollection>; member
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
H A Dx509_cert_chain_openssl_ex.c154 if (inParams->validateParameters.certCRLCollections == NULL) { in GetCertChainFromCollection()
159 for (uint32_t i = 0; i < inParams->validateParameters.certCRLCollections->count; ++i) { in GetCertChainFromCollection()
161 HcfCertCrlCollection *collection = inParams->validateParameters.certCRLCollections->data[i]; in GetCertChainFromCollection()
H A Dx509_cert_chain_openssl.c577 static CfResult GetX509Crls(const HcfCertCRLCollectionArray *certCRLCollections, STACK_OF(X509_CRL) *outCrls) in GetX509Crls() argument
579 if (certCRLCollections == NULL) { // certCRLCollection is not force params for verify certchain in GetX509Crls()
587 for (uint32_t i = 0; i < certCRLCollections->count; i++) { in GetX509Crls()
588 crlCollection = certCRLCollections->data[i]; in GetX509Crls()
1260 return ValidateCrlLocal(params->certCRLCollections, x509CertChain); in ValidateRevocationOnLine()
1272 if ((res = ValidateCrlLocal(params->certCRLCollections, x509CertChain)) == CF_SUCCESS) { in ValidateRevocationOnLine()
1292 if ((res = ValidateCrlLocal(params->certCRLCollections, x509CertChain)) == CF_SUCCESS) { in ValidateRevocationLocal()
1331 return ValidateCrlLocal(params->certCRLCollections, x509CertChain); in STACK_OF()
1852 if (ValidateCrlLocal(params.certCRLCollections, x509CertChain) != CF_SUCCESS) { in STACK_OF()
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_x509_cert_chain_validate_params.cpp435 if (param.certCRLCollections != nullptr) { in FreeX509CertChainValidateParams()
436 CfFree(param.certCRLCollections->data); in FreeX509CertChainValidateParams()
437 CfFree(param.certCRLCollections); in FreeX509CertChainValidateParams()
438 param.certCRLCollections = nullptr; in FreeX509CertChainValidateParams()
488 if (!GetCertCRLCollectionArray(env, arg, param.certCRLCollections)) { in BuildX509CertChainValidateParams()
/base/security/certificate_framework/test/unittest/v1.0/include/
H A Dcrypto_x509_test_common.h519 HcfCertCRLCollectionArray &certCRLCollections);
520 void FreeCertCrlCollectionArr(HcfCertCRLCollectionArray &certCRLCollections);

Completed in 10 milliseconds