Home
last modified time | relevance | path

Searched refs:DEFAULT_PATH_LEN (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/security/huks/utils/compatibility_bin/
H A Dcompatibility_small_bin.c33 #define DEFAULT_PATH_LEN 1024 macro
50 char curPath[DEFAULT_PATH_LEN] = { 0 }; in ChangeDirAndFilesPerm()
52 ret = strcpy_s(curPath, DEFAULT_PATH_LEN, path); in ChangeDirAndFilesPerm()
56 ret = strcat_s(curPath, DEFAULT_PATH_LEN, "/"); in ChangeDirAndFilesPerm()
118 int ret = strcpy_s(curPath, DEFAULT_PATH_LEN, srcPath); in ConstructSrcAndTargetPath()
122 ret = strcat_s(curPath, DEFAULT_PATH_LEN, "/"); in ConstructSrcAndTargetPath()
127 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ConstructSrcAndTargetPath()
132 ret = strcpy_s(desPath, DEFAULT_PATH_LEN, tarPath); in ConstructSrcAndTargetPath()
136 ret = strcat_s(desPath, DEFAULT_PATH_LEN, "/"); in ConstructSrcAndTargetPath()
163 char curPath[DEFAULT_PATH_LEN] = { 0 }; in MoveOldFolderToNew()
[all …]
H A Dcompatibility_standard_bin.c41 #define DEFAULT_PATH_LEN 1024 macro
62 char curPath[DEFAULT_PATH_LEN] = { 0 }; in ChangeDirAndFilesPerm()
64 ret = strcpy_s(curPath, DEFAULT_PATH_LEN, path); in ChangeDirAndFilesPerm()
68 ret = strcat_s(curPath, DEFAULT_PATH_LEN, "/"); in ChangeDirAndFilesPerm()
72 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ChangeDirAndFilesPerm()
/ohos5.0/base/security/huks/test/unittest/modify_old_version_key_test_util/
H A Dhks_test_modify_old_key.c39 #define DEFAULT_PATH_LEN 1024 macro
112 char curPath[DEFAULT_PATH_LEN] = { 0 }; in ChangeDirAndFiles()
114 ret = strcpy_s(curPath, DEFAULT_PATH_LEN, path); in ChangeDirAndFiles()
118 ret = strcat_s(curPath, DEFAULT_PATH_LEN, "/"); in ChangeDirAndFiles()
122 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ChangeDirAndFiles()
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/
H A Dhks_sa.cpp311 #define DEFAULT_PATH_LEN 1024 macro
325 char curPath[DEFAULT_PATH_LEN] = { 0 }; in MoveMineOldFile()
326 if (strcpy_s(curPath, DEFAULT_PATH_LEN, oldDir) != EOK) { in MoveMineOldFile()
329 if (strcat_s(curPath, DEFAULT_PATH_LEN, "/") != EOK) { in MoveMineOldFile()
332 if (strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name) != EOK) { in MoveMineOldFile()
335 char newPath[DEFAULT_PATH_LEN] = { 0 }; in MoveMineOldFile()
336 if (strcpy_s(newPath, DEFAULT_PATH_LEN, newDir) != EOK) { in MoveMineOldFile()
339 if (strcat_s(newPath, DEFAULT_PATH_LEN, "/") != EOK) { in MoveMineOldFile()
342 if (strcat_s(newPath, DEFAULT_PATH_LEN, ptr->d_name) != EOK) { in MoveMineOldFile()
/ohos5.0/base/security/huks/utils/file_iterative_reader/src/
H A Dhks_iterative_reader.c31 #define DEFAULT_PATH_LEN 256 macro
119 int ret = strcpy_s(subPath, DEFAULT_PATH_LEN, curPath); in ConstructSubPath()
123 ret = strcat_s(subPath, DEFAULT_PATH_LEN, "/"); in ConstructSubPath()
128 ret = strcat_s(subPath, DEFAULT_PATH_LEN, ptr->d_name); in ConstructSubPath()
150 char subPath[DEFAULT_PATH_LEN] = { 0 }; in HksGetOldStoreFileInfo()