Home
last modified time | relevance | path

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

12

/base/security/dataclassification/test/unittest/datatransmitmgr/
DDevSLMgrTest.cpp92 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 …]
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/datatransmitmgr_fuzzer/
Ddatatransmitmgr_fuzzer.cpp29 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/
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/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/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c34 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/
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/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/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.c33 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/
Dpeer_to_peer_group.c36 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/
Dcreds_manager.c39 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/
Ddevice_auth.h250 …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,
Ddevice_auth_ext.h119 int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams,
/base/security/device_auth/test/unittest/deviceauth/source/
Ddeviceauth_standard_test.cpp1411 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/
Daccount_related_group_auth_dir_test.cpp57 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.

12