/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager.c | 179 struct CmMutableBlob fileNames = { 0, NULL }; in CertManagerFindCertFileNameByUri() local 180 ret = CertManagerGetFilenames(&fileNames, (char *)path->data); in CertManagerFindCertFileNameByUri() 186 struct CmMutableBlob *fNames = (struct CmMutableBlob *)fileNames.data; in CertManagerFindCertFileNameByUri() 187 ret = FindObjectCert(certUri, fNames, fileNames.size); in CertManagerFindCertFileNameByUri() 188 FreeFileNames(fNames, fileNames.size); in CertManagerFindCertFileNameByUri() 261 void CmFreeFileNames(struct CmBlob *fileNames, const uint32_t fileSize) in CmFreeFileNames() argument 263 if (fileNames == NULL) { in CmFreeFileNames() 269 if (fileNames[i].data != NULL) { in CmFreeFileNames() 270 CMFree(fileNames[i].data); in CmFreeFileNames() 271 fileNames[i].size = 0; in CmFreeFileNames() [all …]
|
D | cert_manager_file_operator.c | 316 static int32_t CmUidLayerGetFileNames(const char *filePath, struct CmBlob *fileNames, in CmUidLayerGetFileNames() argument 328 fileNames[count].data = (uint8_t *)CMMalloc(filePathLen + 1); in CmUidLayerGetFileNames() 329 if (fileNames[count].data == NULL) { in CmUidLayerGetFileNames() 332 (void)memset_s(fileNames[count].data, filePathLen + 1, 0, filePathLen + 1); in CmUidLayerGetFileNames() 333 if (memcpy_s(fileNames[count].data, CM_MAX_FILE_NAME_LEN, filePath, filePathLen) != EOK) { in CmUidLayerGetFileNames() 337 fileNames[count].size = filePathLen + 1; /* include '\0' at end */ in CmUidLayerGetFileNames() 341 int32_t CmUidLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, in CmUidLayerGetFileCountAndNames() argument 378 ret = CmUidLayerGetFileNames(uidPath, fileNames, arraySize, count); in CmUidLayerGetFileCountAndNames() 391 int32_t CmUserIdLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, in CmUserIdLayerGetFileCountAndNames() argument 426 … if (CmUidLayerGetFileCountAndNames(userIdPath, fileNames, arraySize, fileCount) != CM_SUCCESS) { in CmUserIdLayerGetFileCountAndNames()
|
D | cert_manager_file.c | 154 int32_t CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path) in CertManagerGetFilenames() argument 156 if ((fileNames == NULL) || (path == NULL)) { in CertManagerGetFilenames() 176 fileNames->data = (uint8_t *)fNames; in CertManagerGetFilenames() 177 fileNames->size = fileCount; in CertManagerGetFilenames()
|
D | cert_manager_check.c | 130 struct CmBlob fileNames[MAX_COUNT_CERTIFICATE]; in CmCheckMaxInstalledCertCount() local 132 (void)memset_s(fileNames, len, 0, len); in CmCheckMaxInstalledCertCount() 134 if (CmServiceGetAppCertList(cmContext, store, fileNames, in CmCheckMaxInstalledCertCount() 147 CmFreeFileNames(fileNames, fileCount); in CmCheckMaxInstalledCertCount()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
D | cert_manager_file_operator.h | 52 int32_t CmUserIdLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, 55 int32_t CmUidLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames,
|
D | cert_manager.h | 43 … CmServiceGetAppCertList(const struct CmContext *context, uint32_t store, struct CmBlob *fileNames, 46 void CmFreeFileNames(struct CmBlob *fileNames, const uint32_t fileSize);
|
D | cert_manager_file.h | 26 int32_t CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path);
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_zipfile.h | 185 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri… 188 int32_t LoadPackage(std::vector<std::string> &fileNames, const PkgBuffer &buffer, 190 int32_t ParseFileEntries(std::vector<std::string> &fileNames, const EndCentralDir &endDir,
|
D | pkg_upgradefile.h | 98 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verify = nullptr) override; 112 DigestAlgorithm::DigestAlgorithmPtr algorithm, std::vector<std::string> &fileNames);
|
D | pkg_lz4file.h | 68 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
|
D | pkg_gzipfile.h | 73 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
|
D | pkg_zipfile.cpp | 117 int32_t ZipPkgFile::LoadPackage(std::vector<std::string> &fileNames, const PkgBuffer &buffer, in LoadPackage() argument 146 return ParseFileEntries(fileNames, endDir, currentPos, fileLen); in LoadPackage() 155 return ParseFileEntries(fileNames, endDir, currentPos, fileLen); in LoadPackage() 158 int32_t ZipPkgFile::LoadPackage(std::vector<std::string>& fileNames, VerifyFunction verifier) in LoadPackage() argument 197 return LoadPackage(fileNames, buffer, endDirLen, endDirPos, readLen); in LoadPackage() 200 int32_t ZipPkgFile::ParseFileEntries(std::vector<std::string> &fileNames, in ParseFileEntries() argument 232 fileNames.push_back(entry->GetFileName()); in ParseFileEntries()
|
D | pkg_lz4file.cpp | 176 int32_t Lz4PkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument 214 fileNames.push_back(entry->GetFileName()); in LoadPackage()
|
D | pkg_pkgfile.h | 100 …virtual int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr…
|
D | pkg_upgradefile.cpp | 175 int32_t UpgradePkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument 195 ret = ReadComponents(buffer, parsedLen, algorithm, fileNames); in LoadPackage() 258 DigestAlgorithm::DigestAlgorithmPtr algorithm, std::vector<std::string> &fileNames) in ReadComponents() argument 295 fileNames.push_back(entry->GetFileName()); in ReadComponents()
|
D | pkg_gzipfile.cpp | 312 int32_t GZipPkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument 352 fileNames.push_back(entry->GetFileName()); in LoadPackage()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
D | cm_ipc_service.c | 368 …int32_t CmServiceGetAppCertListPack(struct CmBlob *certificateList, const struct CmBlob *fileNames, in CmServiceGetAppCertListPack() argument 395 ret = CmCertListGetAppCertInfo(&fileNames[i], &certType, &certUri, &certAlias); in CmServiceGetAppCertListPack() 431 struct CmBlob fileNames[MAX_COUNT_CERTIFICATE]; in CmIpcServiceGetAppCertList() local 433 (void)memset_s(fileNames, len, 0, len); in CmIpcServiceGetAppCertList() 452 … ret = CmServiceGetAppCertList(&cmContext, store, fileNames, MAX_COUNT_CERTIFICATE, &fileCount); in CmIpcServiceGetAppCertList() 458 ret = CmServiceGetAppCertListPack(&certificateList, fileNames, fileCount); in CmIpcServiceGetAppCertList() 466 CmFreeFileNames(fileNames, fileCount); in CmIpcServiceGetAppCertList()
|
/base/update/updater/test/unittest/package/ |
D | pkg_package_unittest.cpp | 61 … virtual int32_t LoadPackage(std::vector<std::string>& fileNames, VerifyFunction verify = nullptr) in LoadPackage() argument
|