Home
last modified time | relevance | path

Searched refs:trustAnchorArray (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_cert_chain_test.cpp832 trustAnchorArray.count = 1;
922 trustAnchorArray.count = 1;
951 trustAnchorArray.count = 1;
982 trustAnchorArray.count = 1;
1015 trustAnchorArray.count = 1;
1051 trustAnchorArray.count = 1;
1081 trustAnchorArray.count = 1;
2071 CfFree(trustAnchorArray);
2072 trustAnchorArray = NULL;
2244 CfFree(trustAnchorArray);
[all …]
H A Dcrypto_x509_cert_chain_test_part2.cpp194 params.trustAnchors = &trustAnchorArray;
216 FreeTrustAnchorArr(trustAnchorArray);
228 params.trustAnchors = &trustAnchorArray;
265 FreeTrustAnchorArr(trustAnchorArray);
290 FreeTrustAnchorArr(trustAnchorArray);
315 FreeTrustAnchorArr(trustAnchorArray);
357 FreeTrustAnchorArr(trustAnchorArray);
383 FreeTrustAnchorArr(trustAnchorArray);
436 FreeTrustAnchorArr(trustAnchorArray);
473 FreeTrustAnchorArr(trustAnchorArray);
[all …]
H A Dcrypto_x509_test_common.cpp348 void BuildAnchorArr(const CfEncodingBlob &certInStream, HcfX509TrustAnchorArray &trustAnchorArray) in BuildAnchorArr() argument
354trustAnchorArray.data = static_cast<HcfX509TrustAnchor **>(CfMalloc(1 * sizeof(HcfX509TrustAnchor … in BuildAnchorArr()
355 ASSERT_NE(trustAnchorArray.data, nullptr); in BuildAnchorArr()
356 trustAnchorArray.data[0] = anchor; in BuildAnchorArr()
357 trustAnchorArray.count = 1; in BuildAnchorArr()
360 void FreeTrustAnchorArr(HcfX509TrustAnchorArray &trustAnchorArray) in FreeTrustAnchorArr() argument
362 for (uint32_t i = 0; i < trustAnchorArray.count; ++i) { in FreeTrustAnchorArr()
363 HcfX509TrustAnchor *anchor = trustAnchorArray.data[i]; in FreeTrustAnchorArr()
366 CfFree(trustAnchorArray.data); in FreeTrustAnchorArr()
367 trustAnchorArray.data = nullptr; in FreeTrustAnchorArr()
[all …]
/ohos5.0/base/security/certificate_framework/test/fuzztest/v1.0/x509certchain_fuzzer/
H A Dx509certchain_fuzzer.cpp87 if (trustAnchorArray.data == nullptr) { in BuildAnchorArr1()
91 trustAnchorArray.data[0] = anchor; in BuildAnchorArr1()
92 trustAnchorArray.count = 1; in BuildAnchorArr1()
115 CfFree(trustAnchorArray.data); in FreeTrustAnchorArr1()
116 trustAnchorArray.data = nullptr; in FreeTrustAnchorArr1()
117 trustAnchorArray.count = 0; in FreeTrustAnchorArr1()
138 FreeTrustAnchorArr1(trustAnchorArray); in TestVerify()
610 if (trustAnchorArray == nullptr) { in BuildX509CertMatchParamsDataNoCRL()
632 CfFree(trustAnchorArray); in BuildX509CertMatchParamsDataNoCRL()
785 CfFree(trustAnchorArray); in OneCreateTrustAnchorWithKeyStore()
[all …]
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_x509_cert_chain_validate_params.cpp452 if (trustAnchorArray == NULL) { in FreeTrustAnchorArray()
455 for (uint32_t i = 0; i < trustAnchorArray->count; i++) { in FreeTrustAnchorArray()
456 if (trustAnchorArray->data[i] != NULL) { in FreeTrustAnchorArray()
458 CfObjDestroy(trustAnchorArray->data[i]->CACert); in FreeTrustAnchorArray()
460 trustAnchorArray->data[i]->CACert = NULL; in FreeTrustAnchorArray()
461 CfBlobFree(&trustAnchorArray->data[i]->CAPubKey); in FreeTrustAnchorArray()
462 CfBlobFree(&trustAnchorArray->data[i]->CASubject); in FreeTrustAnchorArray()
463 CfBlobFree(&trustAnchorArray->data[i]->nameConstraints); in FreeTrustAnchorArray()
464 CfFree(trustAnchorArray->data[i]); in FreeTrustAnchorArray()
465 trustAnchorArray->data[i] = NULL; in FreeTrustAnchorArray()
[all …]
H A Dnapi_x509_cert_chain.cpp58 HcfX509TrustAnchorArray *trustAnchorArray = nullptr; member
119 FreeTrustAnchorArray(context->trustAnchorArray, freeCertFlag); in DeleteCertChainContext()
505 … HcfCreateTrustAnchorWithKeyStore(context->keyStore, context->pwd, &context->trustAnchorArray); in CreateTrustAnchorsWithKeyStoreExecute()
580 …alue BuildCreateInstanceByTrustAnchorArray(napi_env env, HcfX509TrustAnchorArray *trustAnchorArray) in BuildCreateInstanceByTrustAnchorArray() argument
582 if (trustAnchorArray == nullptr) { in BuildCreateInstanceByTrustAnchorArray()
593 for (uint32_t i = 0; i < trustAnchorArray->count; ++i) { in BuildCreateInstanceByTrustAnchorArray()
599 napi_value valueCACert = ConvertX509CertToNapiValue(env, trustAnchorArray->data[i]->CACert); in BuildCreateInstanceByTrustAnchorArray()
603 trustAnchorArray->data[i]->CACert = nullptr; in BuildCreateInstanceByTrustAnchorArray()
607 …napi_value valuePubKey = ConvertBlobToUint8ArrayNapiValue(env, trustAnchorArray->data[i]->CAPubKey… in BuildCreateInstanceByTrustAnchorArray()
613 … napi_value valueSub = ConvertBlobToUint8ArrayNapiValue(env, trustAnchorArray->data[i]->CASubject); in BuildCreateInstanceByTrustAnchorArray()
[all …]
/ohos5.0/base/security/certificate_framework/test/unittest/v1.0/include/
H A Dcrypto_x509_test_common.h516 void BuildAnchorArr(const CfEncodingBlob &certInStream, HcfX509TrustAnchorArray &trustAnchorArray);
517 void FreeTrustAnchorArr(HcfX509TrustAnchorArray &trustAnchorArray);
/ohos5.0/base/security/certificate_framework/frameworks/core/v1.0/certificate/
H A Dx509_cert_chain.c245 const CfBlob *keyStore, const CfBlob *pwd, HcfX509TrustAnchorArray **trustAnchorArray) in HcfCreateTrustAnchorWithKeyStore() argument
247 if (keyStore == NULL || pwd == NULL || trustAnchorArray == NULL) { in HcfCreateTrustAnchorWithKeyStore()
258 return func->createTrustAnchorFunc(keyStore, pwd, trustAnchorArray); in HcfCreateTrustAnchorWithKeyStore()
/ohos5.0/base/security/certificate_framework/frameworks/adapter/v1.0/src/
H A Dx509_cert_chain_openssl.c2047 if (trustAnchorArray == NULL) { in FreeHcfX509TrustAnchorArrayInner()
2050 if (trustAnchorArray->data != NULL) { in FreeHcfX509TrustAnchorArrayInner()
2051 for (uint32_t i = 0; i < trustAnchorArray->count; i++) { in FreeHcfX509TrustAnchorArrayInner()
2052 if (trustAnchorArray->data[i] != NULL) { in FreeHcfX509TrustAnchorArrayInner()
2053 CfObjDestroy(trustAnchorArray->data[i]->CACert); in FreeHcfX509TrustAnchorArrayInner()
2054 trustAnchorArray->data[i]->CACert = NULL; in FreeHcfX509TrustAnchorArrayInner()
2055 CfBlobFree(&trustAnchorArray->data[i]->CAPubKey); in FreeHcfX509TrustAnchorArrayInner()
2058 CfFree(trustAnchorArray->data[i]); in FreeHcfX509TrustAnchorArrayInner()
2059 trustAnchorArray->data[i] = NULL; in FreeHcfX509TrustAnchorArrayInner()
2062 CfFree(trustAnchorArray->data); in FreeHcfX509TrustAnchorArrayInner()
[all …]
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/inc/
H A Dnapi_x509_cert_chain_validate_params.h30 void FreeTrustAnchorArray(HcfX509TrustAnchorArray *trustAnchorArray, bool freeCertFlag);
/ohos5.0/base/security/certificate_framework/frameworks/adapter/v1.0/inc/
H A Dx509_cert_chain_openssl.h32 const CfBlob *keyStore, const CfBlob *pwd, HcfX509TrustAnchorArray **trustAnchorArray);
/ohos5.0/base/security/certificate_framework/interfaces/innerkits/certificate/
H A Dx509_cert_chain.h75 const CfBlob *keyStore, const CfBlob *pwd, HcfX509TrustAnchorArray **trustAnchorArray);