Home
last modified time | relevance | path

Searched refs:fileNames (Results 1 – 18 of 18) sorted by relevance

/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager.c179 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 …]
Dcert_manager_file_operator.c316 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()
Dcert_manager_file.c154 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()
Dcert_manager_check.c130 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/
Dcert_manager_file_operator.h52 int32_t CmUserIdLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames,
55 int32_t CmUidLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames,
Dcert_manager.h43 … CmServiceGetAppCertList(const struct CmContext *context, uint32_t store, struct CmBlob *fileNames,
46 void CmFreeFileNames(struct CmBlob *fileNames, const uint32_t fileSize);
Dcert_manager_file.h26 int32_t CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path);
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.h185 …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,
Dpkg_upgradefile.h98 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verify = nullptr) override;
112 DigestAlgorithm::DigestAlgorithmPtr algorithm, std::vector<std::string> &fileNames);
Dpkg_lz4file.h68 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
Dpkg_gzipfile.h73 …int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr) overri…
Dpkg_zipfile.cpp117 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()
Dpkg_lz4file.cpp176 int32_t Lz4PkgFile::LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier) in LoadPackage() argument
214 fileNames.push_back(entry->GetFileName()); in LoadPackage()
Dpkg_pkgfile.h100 …virtual int32_t LoadPackage(std::vector<std::string> &fileNames, VerifyFunction verifier = nullptr…
Dpkg_upgradefile.cpp175 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()
Dpkg_gzipfile.cpp312 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/
Dcm_ipc_service.c368 …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/
Dpkg_package_unittest.cpp61 … virtual int32_t LoadPackage(std::vector<std::string>& fileNames, VerifyFunction verify = nullptr) in LoadPackage() argument