Home
last modified time | relevance | path

Searched refs:queryParams (Results 1 – 25 of 38) sorted by relevance

12

/base/security/dataclassification/test/unittest/datatransmitmgr/
DDevSLMgrTest.cpp103 static void DATASL_GetUdidByOpp(DEVSLQueryParams *queryParams) in DATASL_GetUdidByOpp() argument
106 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByOpp()
107 queryParams->udidLen = MAX_UDID_LENGTH; in DATASL_GetUdidByOpp()
110 static void DATASL_GetUdidByExcept(DEVSLQueryParams *queryParams) in DATASL_GetUdidByExcept() argument
113 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExcept()
114 queryParams->udidLen = MAX_UDID_LENGTH + 1; in DATASL_GetUdidByExcept()
117 static void DATASL_GetUdidByExceptZero(DEVSLQueryParams *queryParams) in DATASL_GetUdidByExceptZero() argument
120 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExceptZero()
121 queryParams->udidLen = 0; in DATASL_GetUdidByExceptZero()
124 static int32_t GetLocalUdid(DEVSLQueryParams *queryParams) in GetLocalUdid() argument
[all …]
DDevslinfoListTest.h27 DEVSLQueryParams queryParams; member
50 void LookupCallback(struct DATASLListParams *list, DEVSLQueryParams *queryParams, int32_t result, u…
/base/security/dataclassification/frameworks/datatransmitmgr/
Ddev_slinfo_mgr.c26 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 …]
Ddev_slinfo_adpt.c220 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()
Ddev_slinfo_list.c68 …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/gethighestseclevel_fuzzer/
Dgethighestseclevel_fuzzer.cpp73 static int32_t GetLocalUdidFuzz2(DEVSLQueryParams *queryParams) in GetLocalUdidFuzz2() argument
81 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in GetLocalUdidFuzz2()
82 queryParams->udidLen = MAX_UDID_LENGTH; in GetLocalUdidFuzz2()
93 DEVSLQueryParams queryParams; in FuzzDoGetHighestSecLevel() local
94 (void)memset_s(&queryParams, sizeof(DEVSLQueryParams), 0, sizeof(DEVSLQueryParams)); in FuzzDoGetHighestSecLevel()
95 queryParams.udidLen = MAX_UDID_LENGTH; in FuzzDoGetHighestSecLevel()
96 (void)memcpy_s(queryParams.udid, MAX_UDID_LENGTH, data, MAX_UDID_LENGTH); in FuzzDoGetHighestSecLevel()
99 (void)DATASL_GetHighestSecLevel(&queryParams, &levelInfo); in FuzzDoGetHighestSecLevel()
101 (void)DATASL_GetHighestSecLevel(&queryParams, nullptr); in FuzzDoGetHighestSecLevel()
103 (void)GetLocalUdidFuzz2(&queryParams); in FuzzDoGetHighestSecLevel()
[all …]
/base/security/dataclassification/test/fuzztest/datatransmitmgr/devslinfoadpt_fuzzer/
Ddevslinfoadpt_fuzzer.cpp86 static int32_t GetLocalUdidFuzz3(DEVSLQueryParams *queryParams) in GetLocalUdidFuzz3() argument
94 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in GetLocalUdidFuzz3()
95 queryParams->udidLen = MAX_UDID_LENGTH; in GetLocalUdidFuzz3()
107 DEVSLQueryParams queryParams; in FuzzDoDevSlinfoAdpt() local
108 (void)memset_s(&queryParams, sizeof(DEVSLQueryParams), 0, sizeof(DEVSLQueryParams)); in FuzzDoDevSlinfoAdpt()
109 queryParams.udidLen = MAX_UDID_LENGTH; in FuzzDoDevSlinfoAdpt()
110 (void)memcpy_s(queryParams.udid, MAX_UDID_LENGTH, data, MAX_UDID_LENGTH); in FuzzDoDevSlinfoAdpt()
120 ret = GetLocalUdidFuzz3(&queryParams); in FuzzDoDevSlinfoAdpt()
128 …(void)GetDeviceSecLevelByUdid(static_cast<const uint8_t *>(queryParams.udid), queryParams.udidLen,… in FuzzDoDevSlinfoAdpt()
129 (void)DATASL_GetHighestSecLevel(&queryParams, &levelInfo); in FuzzDoDevSlinfoAdpt()
[all …]
/base/security/dataclassification/test/fuzztest/datatransmitmgr/datatransmitmgr_fuzzer/
Ddatatransmitmgr_fuzzer.cpp25 static void tmpCallback(DEVSLQueryParams *queryParams, int32_t result, uint32_t levelInfo) in tmpCallback() argument
37 DEVSLQueryParams queryParams; in FuzzDoDataTransmitMgr() local
38 (void)memset_s(&queryParams, sizeof(DEVSLQueryParams), 0, sizeof(DEVSLQueryParams)); in FuzzDoDataTransmitMgr()
39 queryParams.udidLen = size; in FuzzDoDataTransmitMgr()
40 (void)memcpy_s(queryParams.udid, MAX_UDID_LENGTH, data, MAX_UDID_LENGTH); in FuzzDoDataTransmitMgr()
43 (void)DATASL_GetHighestSecLevelAsync(&queryParams, tmpCallback); in FuzzDoDataTransmitMgr()
44 (void)DATASL_GetHighestSecLevel(&queryParams, &levelInfo); in FuzzDoDataTransmitMgr()
/base/security/dataclassification/test/fuzztest/datatransmitmgr/gethighestseclevelasync_fuzzer/
Dgethighestseclevelasync_fuzzer.cpp72 static void tmpCallbackFuzz1(DEVSLQueryParams *queryParams, int32_t result, uint32_t levelInfo) in tmpCallbackFuzz1() argument
74 (void)queryParams; in tmpCallbackFuzz1()
86 DEVSLQueryParams queryParams; in FuzzDoGetHighestSecLevelAsync() local
87 (void)memset_s(&queryParams, sizeof(DEVSLQueryParams), 0, sizeof(DEVSLQueryParams)); in FuzzDoGetHighestSecLevelAsync()
88 queryParams.udidLen = MAX_UDID_LENGTH; in FuzzDoGetHighestSecLevelAsync()
89 (void)memcpy_s(queryParams.udid, MAX_UDID_LENGTH, data, MAX_UDID_LENGTH); in FuzzDoGetHighestSecLevelAsync()
92 (void)DATASL_GetHighestSecLevelAsync(&queryParams, tmpCallbackFuzz1); in FuzzDoGetHighestSecLevelAsync()
94 (void)DATASL_GetHighestSecLevelAsync(&queryParams, nullptr); in FuzzDoGetHighestSecLevelAsync()
/base/security/dataclassification/interfaces/innerkits/datatransmitmgr/include/
Ddev_slinfo_mgr.h48 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…
Ddev_slinfo_list.h23 DEVSLQueryParams queryParams; member
47 void LookupCallback(struct DATASLListParams *list, DEVSLQueryParams *queryParams, int32_t result, u…
Ddev_slinfo_adpt.h65 int32_t UpdateCallbackListParams(DEVSLQueryParams *queryParams, HigestSecInfoCallback *callback);
/base/security/device_auth/test/fuzztest/group_manage/getpkinfolist_fuzzer/
Dgetpkinfolist_fuzzer.cpp33 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/
Dgetgroupinfo_fuzzer.cpp33 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/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c37 QueryGroupParams *queryParams, GroupEntryVec *vec);
181 QueryGroupParams queryParams = InitQueryGroupParams(); in IsPeerInIdenticalGroup() local
182 queryParams.groupType = IDENTICAL_ACCOUNT_GROUP; in IsPeerInIdenticalGroup()
184 if (QueryGroups(osAccountId, &queryParams, &accountVec) != HC_SUCCESS) { in IsPeerInIdenticalGroup()
208 QueryGroupParams *queryParams, GroupEntryVec *vec) in GaGetAccountGroup() argument
211 queryParams->groupType = type; in GaGetAccountGroup()
212 if (QueryGroups(osAccountId, queryParams, vec) != HC_SUCCESS) { in GaGetAccountGroup()
237 QueryGroupParams *queryParams, GroupEntryVec *vec) in GetAccountCandidateGroup() argument
252 GaGetAccountGroup(osAccountId, IDENTICAL_ACCOUNT_GROUP, peerUserId, queryParams, vec); in GetAccountCandidateGroup()
254 … GaGetAccountGroup(osAccountId, ACROSS_ACCOUNT_AUTHORIZE_GROUP, peerUserId, queryParams, vec); in GetAccountCandidateGroup()
[all …]
/base/security/dataclassification/
DREADME_zh.md54 | int32_t DATASL_GetHighestSecLevel(DEVSLQueryParams *queryParams, uint32_t *levelInfo); | 获取对应设备可支…
55 | int32_t DATASL_GetHighestSecLevelAsync(DEVSLQueryParams *queryParams, HigestSecInfoCallback *call…
DREADME.md46 | int32_t DATASL_GetHighestSecLevel(DEVSLQueryParams *queryParams, uint32_t *levelInfo); | Obtains …
47 | int32_t DATASL_GetHighestSecLevelAsync(DEVSLQueryParams *queryParams, HigestSecInfoCallback *call…
/base/security/device_auth/services/legacy/group_manager/src/
Dgroup_manager.c95 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/legacy/group_manager/inc/
Dgroup_manager.h41 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,
Dgroup_operation.h43 … 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/legacy/group_auth/inc/account_related_group_auth/
Daccount_related_group_auth.h24 QueryGroupParams *queryParams, GroupEntryVec *vec);
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_common.c37 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountRelatedCandidateGroups() local
39 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountRelatedCandidateGroups()
46 …ountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, param, &queryParams, vec); in GetAccountRelatedCandidateGroups()
74 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountUnrelatedCandidateGroups() local
76 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountUnrelatedCandidateGroups()
78 queryParams.groupType = PEER_TO_PEER_GROUP; in GetAccountUnrelatedCandidateGroups()
79 if (QueryGroups(osAccountId, &queryParams, vec) != HC_SUCCESS) { in GetAccountUnrelatedCandidateGroups()
107 QueryGroupParams queryParams = InitQueryGroupParams(); in GetGroupInfoByGroupId() local
108 queryParams.groupId = groupId; in GetGroupInfoByGroupId()
109 if (QueryGroups(osAccountId, &queryParams, groupEntryVec) != HC_SUCCESS) { in GetGroupInfoByGroupId()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c32 QueryGroupParams queryParams = InitQueryGroupParams(); in IsSameNameGroupExist() local
33 queryParams.ownerName = ownerName; in IsSameNameGroupExist()
34 queryParams.groupName = groupName; in IsSameNameGroupExist()
36 int32_t result = QueryGroups(osAccountId, &queryParams, &groupEntryVec); in IsSameNameGroupExist()
236 QueryDeviceParams queryParams = InitQueryDeviceParams(); in DelAllPeerDevAndKeyInfo() local
237 queryParams.groupId = groupId; in DelAllPeerDevAndKeyInfo()
239 int32_t result = QueryDevices(osAccountId, &queryParams, &deviceEntryVec); in DelAllPeerDevAndKeyInfo()
/base/security/device_auth/services/identity_manager/src/
Didentity_group.c33 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountRelatedCandidateGroups() local
35 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountRelatedCandidateGroups()
37 …((AccountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, in, &queryParams, ve… in GetAccountRelatedCandidateGroups()
61 QueryGroupParams queryParams = InitQueryGroupParams(); in GetAccountUnrelatedCandidateGroups() local
62 queryParams.groupType = PEER_TO_PEER_GROUP; in GetAccountUnrelatedCandidateGroups()
64 queryParams.groupVisibility = GROUP_VISIBILITY_PUBLIC; in GetAccountUnrelatedCandidateGroups()
66 return QueryGroups(osAccountId, &queryParams, vec); in GetAccountUnrelatedCandidateGroups()
71 QueryGroupParams queryParams = InitQueryGroupParams(); in GetGroupInfoByGroupId() local
72 queryParams.groupId = groupId; in GetGroupInfoByGroupId()
73 int32_t ret = QueryGroups(osAccountId, &queryParams, groupEntryVec); in GetGroupInfoByGroupId()
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth.h264 …int32_t (*getPkInfoList)(int32_t osAccountId, const char *appId, const char *queryParams, char **r…
269 int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams,

12