Home
last modified time | relevance | path

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

/ohos5.0/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_test_common.cpp372 HcfCertCRLCollectionArray &certCRLCollections) in BuildCollectionArr() argument
411certCRLCollections.data = static_cast<HcfCertCrlCollection **>(CfMalloc(1 * sizeof(HcfCertCrlColle… 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.data = nullptr; in FreeCertCrlCollectionArr()
[all …]
H A Dcrypto_x509_cert_chain_test.cpp1437 pCertChainValidateParams.certCRLCollections = &certCRLCollections;
1446 FreeCertCrlCollectionArr(certCRLCollections);
1463 pCertChainValidateParams.certCRLCollections = &certCRLCollections;
1470 FreeCertCrlCollectionArr(certCRLCollections);
1493 pCertChainValidateParams.certCRLCollections = &certCRLCollections;
1565 pCertChainValidateParams.certCRLCollections = &certCRLCollections;
1813 ASSERT_NE(certCRLCollections, nullptr); in BuildX509CertMatchParamsData()
1817 params->certCRLCollections = certCRLCollections; in BuildX509CertMatchParamsData()
1837 if (params->certCRLCollections != nullptr) { in FreeX509CertMatchParamsData()
1839 CfFree(params->certCRLCollections); in FreeX509CertMatchParamsData()
[all …]
/ohos5.0/base/security/certificate_framework/test/fuzztest/v1.0/x509certchain_fuzzer/
H A Dx509certchain_fuzzer.cpp567 if (certCRLCollections.data == nullptr) { in BuildCollectionArrNoCRL()
571 certCRLCollections.count = 1; in BuildCollectionArrNoCRL()
579 CfFree(certCRLCollections.data); in BuildCollectionArrNoCRL()
590 CfFree(certCRLCollections.data); in FreeCertCrlCollectionArr1()
591 certCRLCollections.data = nullptr; in FreeCertCrlCollectionArr1()
592 certCRLCollections.count = 0; in FreeCertCrlCollectionArr1()
619 if (certCRLCollections == nullptr) { in BuildX509CertMatchParamsDataNoCRL()
627 params->certCRLCollections = certCRLCollections; in BuildX509CertMatchParamsDataNoCRL()
633 CfFree(certCRLCollections); in BuildX509CertMatchParamsDataNoCRL()
656 CfFree(params->certCRLCollections); in FreeX509CertMatchParamsData()
[all …]
/ohos5.0/base/security/certificate_framework/test/unittest/v1.0/include/
H A Dcrypto_x509_test_common.h519 HcfCertCRLCollectionArray &certCRLCollections);
520 void FreeCertCrlCollectionArr(HcfCertCRLCollectionArray &certCRLCollections);
/ohos5.0/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.c583 static CfResult GetX509Crls(const HcfCertCRLCollectionArray *certCRLCollections, STACK_OF(X509_CRL)… in GetX509Crls() argument
585 if (certCRLCollections == NULL) { // certCRLCollection is not force params for verify certchain in GetX509Crls()
593 for (uint32_t i = 0; i < certCRLCollections->count; i++) { in GetX509Crls()
594 crlCollection = certCRLCollections->data[i]; in GetX509Crls()
1303 return ValidateCrlLocal(params->certCRLCollections, x509CertChain); in ValidateRevocationOnLine()
1315 if ((res = ValidateCrlLocal(params->certCRLCollections, x509CertChain)) == CF_SUCCESS) { in ValidateRevocationOnLine()
1335 if ((res = ValidateCrlLocal(params->certCRLCollections, x509CertChain)) == CF_SUCCESS) { in ValidateRevocationLocal()
1382 return ValidateCrlLocal(params->certCRLCollections, x509CertChain); in ValidateRevocation()
1903 if (ValidateCrlLocal(params.certCRLCollections, x509CertChain) != CF_SUCCESS) { in ValidatCertChainX509()
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_x509_cert_chain_validate_params.cpp433 if (param.certCRLCollections != nullptr) { in FreeX509CertChainValidateParams()
434 CfFree(param.certCRLCollections->data); in FreeX509CertChainValidateParams()
435 CfFree(param.certCRLCollections); in FreeX509CertChainValidateParams()
436 param.certCRLCollections = nullptr; in FreeX509CertChainValidateParams()
489 if (!GetCertCRLCollectionArray(env, arg, param.certCRLCollections)) { in BuildX509CertChainValidateParams()
/ohos5.0/base/security/certificate_framework/interfaces/innerkits/certificate/
H A Dx509_cert_chain_validate_params.h76 HcfCertCRLCollectionArray *certCRLCollections; // Array<CertCRLCollection>; member