Home
last modified time | relevance | path

Searched refs:cList (Results 1 – 2 of 2) sorted by relevance

/base/security/certificate_manager/test/unittest/src/
Dcm_test_common.cpp68 int32_t InitCertList(struct CertList **cList) in InitCertList() argument
70 *cList = static_cast<struct CertList *>(CmMalloc(sizeof(struct CertList))); in InitCertList()
71 if (*cList == nullptr) { in InitCertList()
76 (*cList)->certAbstract = static_cast<struct CertAbstract *>(CmMalloc(buffSize)); in InitCertList()
77 if ((*cList)->certAbstract == NULL) { in InitCertList()
80 (void)memset_s((*cList)->certAbstract, buffSize, 0, buffSize); in InitCertList()
81 (*cList)->certsCount = MAX_COUNT_CERTIFICATE; in InitCertList()
305 bool FindCertAbstract(const struct CertAbstract *abstract, const struct CertList *cList) in FindCertAbstract() argument
307 if (abstract == NULL || cList == NULL || cList->certsCount == 0) { in FindCertAbstract()
310 for (uint32_t i = 0; i < cList->certsCount; ++i) { in FindCertAbstract()
[all …]
/base/security/certificate_manager/test/unittest/include/
Dcm_test_common.h61 int32_t InitCertList(struct CertList **cList);
67 bool FindCertAbstract(const struct CertAbstract *abstract, const struct CertList *cList);