/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
H A D | cert_manager_query.h | 25 int32_t CmGetCertPathList(const struct CmContext *context, uint32_t store, struct CmMutableBlob *pa… 27 int32_t CmGetSysCertPathList(const struct CmContext *context, struct CmMutableBlob *pathList); 29 int32_t CreateCertFileList(const struct CmMutableBlob *pathList, struct CmMutableBlob *certFileList… 35 const struct CmMutableBlob *certFileList, struct CertBlob *certBlob, uint32_t *status); 39 uint32_t CmGetMatchedCertIndex(const struct CmMutableBlob *certFileList, const struct CmBlob *certU… 43 void CmFreePathList(struct CmMutableBlob *pList, uint32_t pathCount);
|
H A D | cert_manager.h | 36 …ruct CmContext *context, const struct CmBlob *certUri, uint32_t store, struct CmMutableBlob *path); 55 int32_t CmWriteUserCert(const struct CmContext *context, struct CmMutableBlob *pathBlob, 62 int32_t CmRemoveUserCert(struct CmMutableBlob *pathBlob, const struct CmBlob *certUri); 68 …AllUserCert(const struct CmContext *context, uint32_t store, const struct CmMutableBlob *pathList);
|
H A D | cert_manager_file.h | 25 int32_t CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path); 40 void FreeFileNames(struct CmMutableBlob *fNames, uint32_t fileCount);
|
H A D | cert_manager_storage.h | 54 int32_t CmGetCertFilePath(const struct CmContext *context, uint32_t store, struct CmMutableBlob *pa…
|
H A D | cert_manager_service.h | 54 int32_t CmServiceGetCertList(const struct CmContext *context, uint32_t store, struct CmMutableBlob …
|
H A D | cert_manager_status.h | 83 int32_t CmSetStatusEnable(const struct CmContext *context, struct CmMutableBlob *pathBlob,
|
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_service.c | 343 const struct CmMutableBlob *sysServicePathList, struct CmMutableBlob *pathList) in MergeUserPathList() 355 uint32_t memSize = sizeof(struct CmMutableBlob) * uidCount; in MergeUserPathList() 356 struct CmMutableBlob *uidList = (struct CmMutableBlob *)CMMalloc(memSize); in MergeUserPathList() 364 struct CmMutableBlob *callerPath = (struct CmMutableBlob *)callerPathList->data; in MergeUserPathList() 365 struct CmMutableBlob *sysServicePath = (struct CmMutableBlob *)sysServicePathList->data; in MergeUserPathList() 389 struct CmMutableBlob callerPathList = { 0, NULL }; in CmGetUserCertPathList() 390 struct CmMutableBlob sysServicePathList = { 0, NULL }; in CmGetUserCertPathList() 474 struct CmMutableBlob certFileList = { 0, NULL }; in CmServiceGetCertInfo() 552 struct CmBlob *certUri, struct CmMutableBlob *pathBlob) in TryBackupUserCert() 604 struct CmMutableBlob pathBlob = { sizeof(pathBuf), pathBuf }; in CmInstallUserCert() [all …]
|
H A D | cert_manager_file.c | 66 void FreeFileNames(struct CmMutableBlob *fNames, uint32_t fileCount) in FreeFileNames() 79 static int32_t MallocFileNames(struct CmMutableBlob **fNames, const char *path, uint32_t *fileCount) in MallocFileNames() 96 uint32_t bufSize = sizeof(struct CmMutableBlob) * (uint32_t)fileNums; in MallocFileNames() 97 struct CmMutableBlob *temp = (struct CmMutableBlob *)CMMalloc(bufSize); in MallocFileNames() 110 static int32_t GetFileNames(const char *path, struct CmMutableBlob *fNames, uint32_t fileCount) in GetFileNames() 156 int32_t CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path) in CertManagerGetFilenames() 164 struct CmMutableBlob *fNames = NULL; in CertManagerGetFilenames()
|
H A D | cert_manager_query.c | 32 static int32_t MallocCertPath(struct CmMutableBlob *cPath, const char *path) in MallocCertPath() 45 void CmFreePathList(struct CmMutableBlob *pList, uint32_t pathCount) in CmFreePathList() 101 static int32_t CreateCertPathList(const char *useridPath, struct CmMutableBlob *pathList) in CreateCertPathList() 118 uint32_t arraySize = sizeof(struct CmMutableBlob) * (uint32_t)uidCount; in CreateCertPathList() 119 struct CmMutableBlob *cPathList = (struct CmMutableBlob *)CMMalloc(arraySize); in CreateCertPathList() 158 int32_t CmGetSysCertPathList(const struct CmContext *context, struct CmMutableBlob *pathList) in CmGetSysCertPathList() 161 uint32_t listSize = sizeof(struct CmMutableBlob) * sysPathCnt; in CmGetSysCertPathList() 162 struct CmMutableBlob *cPathList = (struct CmMutableBlob *)CMMalloc(listSize); in CmGetSysCertPathList() 300 int32_t CreateCertFileList(const struct CmMutableBlob *pathList, struct CmMutableBlob *certFileList) in CreateCertFileList() 316 struct CmMutableBlob *uidPath = (struct CmMutableBlob *)pathList->data; in CreateCertFileList() [all …]
|
H A D | cert_manager.c | 124 static int32_t CmGetFilePath(const struct CmContext *context, uint32_t store, struct CmMutableBlob … in CmGetFilePath() 186 uint32_t store, struct CmMutableBlob *path) in CertManagerFindCertFileNameByUri() 196 struct CmMutableBlob fileNames = { 0, NULL }; in CertManagerFindCertFileNameByUri() 203 struct CmMutableBlob *fNames = (struct CmMutableBlob *)fileNames.data; in CertManagerFindCertFileNameByUri() 231 struct CmMutableBlob path = { sizeof(pathBuf), (uint8_t*) pathBuf }; in CmRemoveAppCert() 598 int32_t CmWriteUserCert(const struct CmContext *context, struct CmMutableBlob *pathBlob, in CmWriteUserCert() 763 int32_t CmRemoveUserCert(struct CmMutableBlob *pathBlob, const struct CmBlob *certUri) in CmRemoveUserCert() 793 struct CmMutableBlob fileNames = { 0, NULL }; in RemoveAllUserCert() 794 … struct CmMutableBlob pathBlob = { strlen(path) + 1, (uint8_t *)path }; /* include '\0' at end. */ in RemoveAllUserCert() 802 struct CmMutableBlob *fNames = (struct CmMutableBlob *)fileNames.data; in RemoveAllUserCert() [all …]
|
H A D | cert_manager_status.c | 842 struct CmMutableBlob path = { sizeof(pathBuf), (uint8_t *) pathBuf }; in SetcertStatus() 855 int32_t CmSetStatusEnable(const struct CmContext *context, struct CmMutableBlob *pathBlob, in CmSetStatusEnable()
|
H A D | cert_manager_storage.c | 180 int32_t CmGetCertFilePath(const struct CmContext *context, uint32_t store, struct CmMutableBlob *pa… in CmGetCertFilePath()
|
H A D | cm_event_process.c | 77 struct CmMutableBlob pathBlob = { strlen(filePath) + 1, (uint8_t *)filePath }; in CmTraversalDirActionUserCa()
|
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
H A D | cm_ipc_service_serialization.h | 32 const struct CmMutableBlob *certFileList, struct CmBlob *certificateList);
|
H A D | cm_ipc_service_serialization.c | 174 const struct CmMutableBlob *certFileList, struct CmBlob *certificateList) in CmServiceGetCertListPack()
|
H A D | cm_ipc_service.c | 73 struct CmMutableBlob certFileList = { 0, NULL }; in CmIpcServiceGetCertificateList() 1008 struct CmMutableBlob certFileList = { 0, NULL }; in CmIpcServiceGetUserCertList()
|
/ohos5.0/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/ |
H A D | cm_type.h | 213 struct CmMutableBlob { struct
|