/base/security/certificate_manager/interfaces/kits/napi/src/ |
D | cm_napi_get_system_cert_list.cpp | 39 struct CertList *certificateList = nullptr; member 62 if (context->certificateList != nullptr) { in DeleteGetCertListAsyncContext() 63 FreeCertList(context->certificateList); in DeleteGetCertListAsyncContext() 103 context->certificateList->certAbstract, context->certificateList->certsCount); in GetCertListWriteResult() 116 context->certificateList = static_cast<struct CertList *>(CmMalloc(sizeof(struct CertList))); in GetCertListExecute() 117 if (context->certificateList == nullptr) { in GetCertListExecute() 122 context->certificateList->certAbstract = nullptr; in GetCertListExecute() 123 context->certificateList->certsCount = 0; in GetCertListExecute() 126 context->certificateList->certAbstract = static_cast<struct CertAbstract *>(CmMalloc(buffSize)); in GetCertListExecute() 127 if (context->certificateList->certAbstract == nullptr) { in GetCertListExecute() [all …]
|
/base/security/certificate_manager/test/unittest/module_test/src/ |
D | cm_log_test.cpp | 267 struct CertList certificateList = { 1, &abstract }; variable 268 … int32_t ret = CmCertificateListUnpackFromService(nullptr, &certificateList); /* outData invalid */ 282 struct CertList certificateList = { 1, &abstract }; variable 283 int32_t ret = CmCertificateListUnpackFromService(&outData, &certificateList); 298 struct CertList certificateList = { 1, &abstract }; variable 299 int32_t ret = CmCertificateListUnpackFromService(&outData, &certificateList); 327 struct CertList certificateList = { 0, nullptr }; variable 328 …int32_t ret = CmCertificateListUnpackFromService(&outData, &certificateList); /* abstract invalid … 341 struct CertList certificateList = { 1, &abstract }; variable 351 int32_t ret = CmCertificateListUnpackFromService(&outData, &certificateList); [all …]
|
/base/security/certificate_manager/test/unittest/src/ |
D | cm_app_cert_test.cpp | 433 struct CredentialList certificateList = { 0, nullptr }; variable 435 … certificateList.credentialAbstract = static_cast<struct CredentialAbstract *>(CmMalloc(buffSize)); 436 ASSERT_TRUE(certificateList.credentialAbstract != nullptr); 440 certificateList.credentialCount = MAX_COUNT_CERTIFICATE; 441 (void)memset_s(certificateList.credentialAbstract, buffSize, 0, buffSize); 442 ret = CmGetAppCertList(CM_PRI_CREDENTIAL_STORE, &certificateList); 446 if (certificateList.credentialAbstract != nullptr) { 447 CmFree(certificateList.credentialAbstract); 468 struct CredentialList certificateList = { 0, nullptr }; variable 470 … certificateList.credentialAbstract = static_cast<struct CredentialAbstract *>(CmMalloc(buffSize)); [all …]
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/ |
D | cm_ipc_client_serialization.c | 56 …atic int32_t CmCertListGetCertCount(const struct CmBlob *outData, struct CertList *certificateList, in CmCertListGetCertCount() argument 66 if (certsCount > certificateList->certsCount) { in CmCertListGetCertCount() 70 certificateList->certsCount = certsCount; in CmCertListGetCertCount() 75 … CmCertificateListUnpackFromService(const struct CmBlob *outData, struct CertList *certificateList) in CmCertificateListUnpackFromService() argument 77 …if (CmCheckBlob(outData) != CM_SUCCESS || (certificateList == NULL) || (certificateList->certAbstr… in CmCertificateListUnpackFromService() 82 int32_t ret = CmCertListGetCertCount(outData, certificateList, &offset); in CmCertificateListUnpackFromService() 88 for (uint32_t i = 0; i < certificateList->certsCount; i++) { in CmCertificateListUnpackFromService() 95 …if (memcpy_s(certificateList->certAbstract[i].subjectName, MAX_LEN_SUBJECT_NAME, blob.data, blob.s… in CmCertificateListUnpackFromService() 106 certificateList->certAbstract[i].status = (status >= 1) ? false : true; in CmCertificateListUnpackFromService() 113 … if (memcpy_s(certificateList->certAbstract[i].uri, MAX_LEN_URI, blob.data, blob.size) != EOK) { in CmCertificateListUnpackFromService() [all …]
|
D | cm_ipc_client.c | 55 struct CertList *certificateList) in GetCertificateList() argument 84 ret = CmCertificateListUnpackFromService(&outBlob, certificateList); in GetCertificateList() 91 int32_t CmClientGetCertList(const uint32_t store, struct CertList *certificateList) in CmClientGetCertList() argument 93 return GetCertificateList(CM_MSG_GET_CERTIFICATE_LIST, store, certificateList); in CmClientGetCertList() 310 struct CredentialList *certificateList, uint32_t *offset) in CmAppCertListGetCertCount() argument 323 if (credCount > certificateList->credentialCount) { in CmAppCertListGetCertCount() 325 certificateList->credentialCount); in CmAppCertListGetCertCount() 329 certificateList->credentialCount = credCount; in CmAppCertListGetCertCount() 335 struct CredentialList *certificateList) in CmAppCertListUnpackFromService() argument 339 if ((outData == NULL) || (certificateList == NULL) || in CmAppCertListUnpackFromService() [all …]
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
D | cm_ipc_service_serialization.c | 122 struct CmBlob *certificateList) in CmGetCertListPack() argument 127 if (certificateList->size < buffSize) { in CmGetCertListPack() 131 certificateList->size = buffSize; in CmGetCertListPack() 133 int32_t ret = CopyUint32ToBuffer(certCount, certificateList, &offset); in CmGetCertListPack() 140 ret = CopyBlobToBuffer(&(certBlob->subjectName[i]), certificateList, &offset); in CmGetCertListPack() 145 ret = CopyUint32ToBuffer(status[i], certificateList, &offset); in CmGetCertListPack() 150 ret = CopyBlobToBuffer(&(certBlob->uri[i]), certificateList, &offset); in CmGetCertListPack() 155 ret = CopyBlobToBuffer(&(certBlob->certAlias[i]), certificateList, &offset); in CmGetCertListPack() 165 const struct CmMutableBlob *certFileList, struct CmBlob *certificateList) in CmServiceGetCertListPack() argument 177 ret = CmGetCertListPack(&certBlob, status, certFileList->size, certificateList); in CmServiceGetCertListPack()
|
D | cm_ipc_service_serialization.h | 32 const struct CmMutableBlob *certFileList, struct CmBlob *certificateList);
|
D | cm_ipc_service.c | 373 static int32_t CmServiceGetAppCertListPack(struct CmBlob *certificateList, const struct CmBlob *fil… in CmServiceGetAppCertListPack() argument 379 certificateList->data = (uint8_t *)CmMalloc(buffSize); in CmServiceGetAppCertListPack() 380 if (certificateList->data == NULL) { in CmServiceGetAppCertListPack() 383 certificateList->size = buffSize; in CmServiceGetAppCertListPack() 386 int32_t ret = CopyUint32ToBuffer(fileCount, certificateList, &offset); in CmServiceGetAppCertListPack() 406 ret = CopyBlobToBuffer(&certType, certificateList, &offset); in CmServiceGetAppCertListPack() 412 ret = CopyBlobToBuffer(&certUri, certificateList, &offset); in CmServiceGetAppCertListPack() 418 ret = CopyBlobToBuffer(&certAlias, certificateList, &offset); in CmServiceGetAppCertListPack() 436 struct CmBlob certificateList = { 0, NULL }; in CmIpcServiceGetAppCertList() local 464 ret = CmServiceGetAppCertListPack(&certificateList, fileNames, fileCount); in CmIpcServiceGetAppCertList() [all …]
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/ |
D | cert_manager_api.c | 23 CM_API_EXPORT int32_t CmGetCertList(uint32_t store, struct CertList *certificateList) in CmGetCertList() argument 26 if (certificateList == NULL) { in CmGetCertList() 31 if ((certificateList->certAbstract == NULL) || (store != CM_SYSTEM_TRUSTED_STORE)) { in CmGetCertList() 36 int32_t ret = CmClientGetCertList(store, certificateList); in CmGetCertList() 120 CM_API_EXPORT int32_t CmGetAppCertList(const uint32_t store, struct CredentialList *certificateList) in CmGetAppCertList() argument 123 if (certificateList == NULL || (store != CM_CREDENTIAL_STORE && in CmGetAppCertList() 128 int32_t ret = CmClientGetAppCertList(store, certificateList); in CmGetAppCertList() 251 CM_API_EXPORT int32_t CmGetUserCertList(uint32_t store, struct CertList *certificateList) in CmGetUserCertList() argument 254 if (certificateList == NULL) { in CmGetUserCertList() 258 int32_t ret = CmClientGetUserCertList(store, certificateList); in CmGetUserCertList()
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/ |
D | cm_ipc_client.h | 27 int32_t CmClientGetCertList(const uint32_t store, struct CertList *certificateList); 42 int32_t CmClientGetAppCertList(const uint32_t store, struct CredentialList *certificateList); 62 int32_t CmClientGetUserCertList(const uint32_t store, struct CertList *certificateList);
|
D | cm_ipc_client_serialization.h | 33 …CmCertificateListUnpackFromService(const struct CmBlob *outData, struct CertList *certificateList);
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/ |
D | cert_manager_api.h | 25 CM_API_EXPORT int32_t CmGetCertList(uint32_t store, struct CertList *certificateList); 40 CM_API_EXPORT int32_t CmGetAppCertList(const uint32_t store, struct CredentialList *certificateList… 60 CM_API_EXPORT int32_t CmGetUserCertList(uint32_t store, struct CertList *certificateList);
|