/base/security/dataclassification/test/unittest/datatransmitmgr/ |
D | DevSLMgrTest.cpp | 103 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 …]
|
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/gethighestseclevel_fuzzer/ |
D | gethighestseclevel_fuzzer.cpp | 73 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/ |
D | devslinfoadpt_fuzzer.cpp | 86 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/ |
D | datatransmitmgr_fuzzer.cpp | 25 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/ |
D | gethighestseclevelasync_fuzzer.cpp | 72 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/ |
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/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/ |
D | account_related_group_auth.c | 37 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/ |
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/legacy/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/legacy/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/legacy/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 | 37 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/ |
D | peer_to_peer_group.c | 32 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/ |
D | identity_group.c | 33 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/ |
D | device_auth.h | 264 …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,
|