/base/security/dataclassification/test/unittest/datatransmitmgr/ |
D | DevSLMgrTest.cpp | 92 static void DATASL_GetUdidByOpp(DEVSLQueryParams *queryParams) in DATASL_GetUdidByOpp() argument 95 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByOpp() 96 queryParams->udidLen = MAX_UDID_LENGTH; in DATASL_GetUdidByOpp() 99 static void DATASL_GetUdidByExcept(DEVSLQueryParams *queryParams) in DATASL_GetUdidByExcept() argument 102 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExcept() 103 queryParams->udidLen = MAX_UDID_LENGTH + 1; in DATASL_GetUdidByExcept() 106 static void DATASL_GetUdidByExceptZero(DEVSLQueryParams *queryParams) in DATASL_GetUdidByExceptZero() argument 109 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExceptZero() 110 queryParams->udidLen = 0; in DATASL_GetUdidByExceptZero() 113 static int32_t GetLocalUdid(DEVSLQueryParams *queryParams) in GetLocalUdid() argument [all …]
|
D | DevslinfoListTest.h | 27 DEVSLQueryParams queryParams; member 50 void LookupCallback(struct DATASLListParams *list, DEVSLQueryParams *queryParams, int32_t result, u…
|
/base/security/dataclassification/frameworks/datatransmitmgr/ |
D | dev_slinfo_mgr.c | 26 static int32_t GetHighestSecLevelByUdid(DEVSLQueryParams *queryParams, uint32_t *dataLevel) in GetHighestSecLevelByUdid() argument 31 if ((queryParams->udidLen <= 0u) || (queryParams->udidLen > 64u)) { in GetHighestSecLevelByUdid() 35 ret = GetDeviceSecLevelByUdid(queryParams->udid, queryParams->udidLen, &devLevel); in GetHighestSecLevelByUdid() 69 DATASL_API int32_t DATASL_GetHighestSecLevel(DEVSLQueryParams *queryParams, uint32_t *levelInfo) in DATASL_GetHighestSecLevel() argument 73 if ((queryParams == NULL) || (levelInfo == NULL)) { in DATASL_GetHighestSecLevel() 77 ret = GetHighestSecLevelByUdid(queryParams, levelInfo); in DATASL_GetHighestSecLevel() 83 static int32_t GetHighestSecLevelByUdidAsync(DEVSLQueryParams *queryParams) in GetHighestSecLevelByUdidAsync() argument 88 ret = GetDeviceSecLevelByUdidAsync(queryParams->udid, queryParams->udidLen); in GetHighestSecLevelByUdidAsync() 98 DATASL_API int32_t DATASL_GetHighestSecLevelAsync(DEVSLQueryParams *queryParams, HigestSecInfoCallb… in DATASL_GetHighestSecLevelAsync() argument 103 …if ((queryParams == NULL) || (callback == NULL) || (queryParams->udidLen <= 0u) || (queryParams->u… in DATASL_GetHighestSecLevelAsync() [all …]
|
D | dev_slinfo_adpt.c | 220 DEVSLQueryParams queryParams; in OnApiDeviceSecInfoCallback() local 221 (void)memset_s(&queryParams, sizeof(queryParams), 0, sizeof(queryParams)); in OnApiDeviceSecInfoCallback() 223 if (memcpy_s(queryParams.udid, MAX_UDID_LENGTH, identify->identity, identify->length) != EOK) { in OnApiDeviceSecInfoCallback() 227 queryParams.udidLen = identify->length; in OnApiDeviceSecInfoCallback() 230 LookupCallback(g_callbackList, &queryParams, ret, levelInfo); in OnApiDeviceSecInfoCallback() 307 int32_t UpdateCallbackListParams(DEVSLQueryParams *queryParams, HigestSecInfoCallback *callback) in UpdateCallbackListParams() argument 320 …ret = memcpy_s(newListNode->queryParams.udid, MAX_UDID_LENGTH, queryParams->udid, queryParams->udi… in UpdateCallbackListParams() 326 newListNode->queryParams.udidLen = queryParams->udidLen; in UpdateCallbackListParams() 331 g_callbackList->next->callbackParams->callback(queryParams, result, levelInfo); in UpdateCallbackListParams()
|
D | dev_slinfo_list.c | 68 …if (CompareUdid(&(pList->callbackParams->queryParams), &(callbackParams->queryParams)) == DEVSL_SU… in RemoveListNode() 122 void LookupCallback(struct DATASLListParams *list, DEVSLQueryParams *queryParams, int32_t result, u… in LookupCallback() argument 131 ret = CompareUdid(&(tmpCallback->callbackParams->queryParams), queryParams); in LookupCallback() 133 (void)memcpy_s(&tmpCallbackParams.queryParams, sizeof(DEVSLQueryParams), in LookupCallback() 134 queryParams, sizeof(DEVSLQueryParams)); in LookupCallback() 150 tmpCallbackParams.callback(&(tmpCallbackParams.queryParams), result, levelInfo); in LookupCallback()
|
/base/security/dataclassification/test/fuzztest/datatransmitmgr/datatransmitmgr_fuzzer/ |
D | datatransmitmgr_fuzzer.cpp | 29 static void tmpCallback(DEVSLQueryParams *queryParams, int32_t result, uint32_t levelInfo) in tmpCallback() argument 34 static void GetLocalUdid(DEVSLQueryParams *queryParams) in GetLocalUdid() argument 39 …if (GetNodeKeyInfo(pkgName, info.networkId, NODE_KEY_UDID, (uint8_t *)(queryParams->udid), UDID_BU… in GetLocalUdid() 42 queryParams->udidLen = MAX_UDID_LENGTH; in GetLocalUdid() 54 DEVSLQueryParams queryParams; in FuzzDoDataTransmitMgr() local 55 (void)memset_s(&queryParams, sizeof(DEVSLQueryParams), 0, sizeof(DEVSLQueryParams)); in FuzzDoDataTransmitMgr() 56 queryParams.udidLen = MAX_UDID_LENGTH; in FuzzDoDataTransmitMgr() 57 (void)memcpy_s(queryParams.udid, queryParams.udidLen, data, MAX_UDID_LENGTH); in FuzzDoDataTransmitMgr() 63 (void)DATASL_GetHighestSecLevelAsync(&queryParams, tmpCallback); in FuzzDoDataTransmitMgr() 65 (void)DATASL_GetHighestSecLevelAsync(&queryParams, nullptr); in FuzzDoDataTransmitMgr() [all …]
|
/base/security/dataclassification/interfaces/innerkits/datatransmitmgr/include/ |
D | dev_slinfo_mgr.h | 48 int32_t DATASL_GetHighestSecLevel(DEVSLQueryParams *queryParams, uint32_t *levelInfo); 54 typedef void HigestSecInfoCallback(DEVSLQueryParams *queryParams, int32_t result, uint32_t levelInf… 56 int32_t DATASL_GetHighestSecLevelAsync(DEVSLQueryParams *queryParams, HigestSecInfoCallback *callba…
|
D | dev_slinfo_list.h | 23 DEVSLQueryParams queryParams; member 47 void LookupCallback(struct DATASLListParams *list, DEVSLQueryParams *queryParams, int32_t result, u…
|
D | dev_slinfo_adpt.h | 65 int32_t UpdateCallbackListParams(DEVSLQueryParams *queryParams, HigestSecInfoCallback *callback);
|
/base/security/device_auth/test/fuzztest/group_manage/getpkinfolist_fuzzer/ |
D | getpkinfolist_fuzzer.cpp | 33 std::string queryParams(reinterpret_cast<const char *>(data), size); in FuzzDoGetPkInfoList() 36 …gmInstance->getPkInfoList(*osAccountId, appId.c_str(), queryParams.c_str(), &returnInfoList, &retu… in FuzzDoGetPkInfoList()
|
/base/security/device_auth/test/fuzztest/group_manage/getgroupinfo_fuzzer/ |
D | getgroupinfo_fuzzer.cpp | 33 std::string queryParams(reinterpret_cast<const char *>(data), size); in FuzzDoGetGroupInfo() 36 … gmInstance->getGroupInfo(*osAccountId, appId.c_str(), queryParams.c_str(), &outGroups, &groupNum); in FuzzDoGetGroupInfo()
|
/base/security/dataclassification/ |
D | README_zh.md | 54 | int32_t DATASL_GetHighestSecLevel(DEVSLQueryParams *queryParams, uint32_t *levelInfo); | 获取对应设备可支… 55 | int32_t DATASL_GetHighestSecLevelAsync(DEVSLQueryParams *queryParams, HigestSecInfoCallback *call…
|
D | README.md | 46 | int32_t DATASL_GetHighestSecLevel(DEVSLQueryParams *queryParams, uint32_t *levelInfo); | Obtains … 47 | int32_t DATASL_GetHighestSecLevelAsync(DEVSLQueryParams *queryParams, HigestSecInfoCallback *call…
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/ |
D | account_related_group_auth.c | 34 QueryGroupParams *queryParams, GroupEntryVec *vec); 174 QueryGroupParams queryParams = InitQueryGroupParams(); in IsPeerInIdenticalGroup() local 175 queryParams.groupType = IDENTICAL_ACCOUNT_GROUP; in IsPeerInIdenticalGroup() 177 if (QueryGroups(osAccountId, &queryParams, &accountVec) != HC_SUCCESS) { in IsPeerInIdenticalGroup() 201 QueryGroupParams *queryParams, GroupEntryVec *vec) in GaGetAccountGroup() argument 204 queryParams->groupType = type; in GaGetAccountGroup() 205 if (QueryGroups(osAccountId, queryParams, vec) != HC_SUCCESS) { in GaGetAccountGroup() 230 QueryGroupParams *queryParams, GroupEntryVec *vec) in GetAccountCandidateGroup() argument 245 GaGetAccountGroup(osAccountId, IDENTICAL_ACCOUNT_GROUP, peerUserId, queryParams, vec); in GetAccountCandidateGroup() 247 … GaGetAccountGroup(osAccountId, ACROSS_ACCOUNT_AUTHORIZE_GROUP, peerUserId, queryParams, vec); in GetAccountCandidateGroup() [all …]
|
/base/security/device_auth/services/group_manager/src/ |
D | group_manager.c | 95 int32_t GetGroupInfoImpl(int32_t osAccountId, const char *appId, const char *queryParams, in GetGroupInfoImpl() argument 99 … IsGroupSupport() ? GetGroupImplInstance()->getAccessibleGroupInfo(osAccountId, appId, queryParams, in GetGroupInfoImpl() 143 int32_t GetPkInfoListImpl(int32_t osAccountId, const char *appId, const char *queryParams, in GetPkInfoListImpl() argument 147 return IsGroupSupport() ? GetGroupImplInstance()->getPkInfoList(osAccountId, appId, queryParams, in GetPkInfoListImpl()
|
/base/security/device_auth/services/group_manager/inc/ |
D | group_manager.h | 41 int32_t GetGroupInfoImpl(int32_t osAccountId, const char *appId, const char *queryParams, 52 int32_t GetPkInfoListImpl(int32_t osAccountId, const char *appId, const char *queryParams,
|
D | group_operation.h | 43 … int32_t (*getAccessibleGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams, 55 …int32_t (*getPkInfoList)(int32_t osAccountId, const char *appId, const char *queryParams, char **r…
|
/base/security/device_auth/services/group_auth/inc/account_related_group_auth/ |
D | account_related_group_auth.h | 24 QueryGroupParams *queryParams, GroupEntryVec *vec);
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
D | compatible_auth_sub_session_common.c | 33 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountRelatedCandidateGroups() local 35 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountRelatedCandidateGroups() 42 …ountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, param, &queryParams, vec); in GetAccountRelatedCandidateGroups() 51 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountUnrelatedCandidateGroups() local 53 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountUnrelatedCandidateGroups() 55 queryParams.groupType = PEER_TO_PEER_GROUP; in GetAccountUnrelatedCandidateGroups() 56 if (QueryGroups(osAccountId, &queryParams, vec) != HC_SUCCESS) { in GetAccountUnrelatedCandidateGroups() 84 QueryGroupParams queryParams = InitQueryGroupParams(); in GetGroupInfoByGroupId() local 85 queryParams.groupId = groupId; in GetGroupInfoByGroupId() 86 if (QueryGroups(osAccountId, &queryParams, groupEntryVec) != HC_SUCCESS) { in GetGroupInfoByGroupId()
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 36 QueryGroupParams queryParams = InitQueryGroupParams(); in IsSameNameGroupExist() local 37 queryParams.ownerName = ownerName; in IsSameNameGroupExist() 38 queryParams.groupName = groupName; in IsSameNameGroupExist() 40 int32_t result = QueryGroups(osAccountId, &queryParams, &groupEntryVec); in IsSameNameGroupExist() 240 QueryDeviceParams queryParams = InitQueryDeviceParams(); in DelAllPeerDevAndKeyInfo() local 241 queryParams.groupId = groupId; in DelAllPeerDevAndKeyInfo() 243 int32_t result = QueryDevices(osAccountId, &queryParams, &deviceEntryVec); in DelAllPeerDevAndKeyInfo()
|
/base/security/device_auth/services/creds_manager/src/ |
D | creds_manager.c | 39 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountRelatedCandidateGroups() local 41 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountRelatedCandidateGroups() 43 …((AccountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, in, &queryParams, ve… in GetAccountRelatedCandidateGroups() 49 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountUnrelatedCandidateGroups() local 50 queryParams.groupType = PEER_TO_PEER_GROUP; in GetAccountUnrelatedCandidateGroups() 52 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountUnrelatedCandidateGroups() 54 return QueryGroups(osAccountId, &queryParams, vec); in GetAccountUnrelatedCandidateGroups() 669 QueryGroupParams queryParams = InitQueryGroupParams(); in GetGroupInfoByGroupId() local 670 queryParams.groupId = groupId; in GetGroupInfoByGroupId() 671 int32_t ret = QueryGroups(osAccountId, &queryParams, groupEntryVec); in GetGroupInfoByGroupId()
|
/base/security/device_auth/interfaces/inner_api/ |
D | device_auth.h | 250 …int32_t (*getPkInfoList)(int32_t osAccountId, const char *appId, const char *queryParams, char **r… 255 int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams,
|
D | device_auth_ext.h | 119 int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams,
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
D | deviceauth_standard_test.cpp | 1411 const char *queryParams = "{\"isSelfPk\":true}"; variable 1412 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, queryParams, &returnData, &return… 1422 const char *queryParams = "{\"udid\":\"ABCD\"}"; variable 1423 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, queryParams, &returnData, &return… 1433 …const char *queryParams = "{\"udid\":\"5420459D93FE773F9945FD64277FBA2CAB8FB996DDC1D0B97676FBB1242" variable 1435 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, queryParams, &returnData, &return… 1448 const char *queryParams = "{\"udid\":\"ABCD\",\"isSelfPk\":true}"; variable 1449 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, queryParams, &returnData, &return… 1461 …const char *queryParams = "{\"udid\":\"5420459D93FE773F9945FD64277FBA2CAB8FB996DDC1D0B97676FBB1242" variable 1463 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, queryParams, &returnData, &return… [all …]
|
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/ |
D | account_related_group_auth_dir_test.cpp | 57 QueryGroupParams queryParams; variable 59 (void)groupAuth->getAccountCandidateGroup(0, param, &queryParams, &vec); // For unit test. 63 (void)groupAuth->getAccountCandidateGroup(0, param, &queryParams, &vec); // For unit test.
|