Home
last modified time | relevance | path

Searched refs:fileBuff (Results 1 – 2 of 2) sorted by relevance

/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_kit_test.cpp102 char *fileBuff = nullptr; in DeleteNodeInFile() local
104 if (GetFileBuff(TOKEN_ID_CFG_FILE_PATH, &fileBuff) != ATRET_SUCCESS) { in DeleteNodeInFile()
108 if (fileBuff == nullptr) { in DeleteNodeInFile()
111 record = cJSON_Parse(fileBuff); in DeleteNodeInFile()
112 free(fileBuff); in DeleteNodeInFile()
113 fileBuff = nullptr; in DeleteNodeInFile()
426 char *fileBuff = nullptr; variable
427 int32_t ret = GetFileBuff(TOKEN_ID_CFG_FILE_PATH, &fileBuff);
430 char *pos = strstr(fileBuff, s.c_str());
611 char *fileBuff = nullptr; variable
[all …]
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken.c172 char *fileBuff = NULL; in ParseTokenInfo() local
176 ret = GetFileBuff(TOKEN_ID_CFG_FILE_PATH, &fileBuff); in ParseTokenInfo()
180 if (fileBuff == NULL) { in ParseTokenInfo()
183 record = cJSON_Parse(fileBuff); in ParseTokenInfo()
184 free(fileBuff); in ParseTokenInfo()
185 fileBuff = NULL; in ParseTokenInfo()
363 char *fileBuff = NULL; in SaveTokenIdToCfg() local
367 ret = GetFileBuff(TOKEN_ID_CFG_FILE_PATH, &fileBuff); in SaveTokenIdToCfg()
372 if (fileBuff == NULL) { in SaveTokenIdToCfg()
375 record = cJSON_Parse(fileBuff); in SaveTokenIdToCfg()
[all …]