Home
last modified time | relevance | path

Searched refs:groupParams (Results 1 – 13 of 13) sorted by relevance

/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h51 int32_t AddGroupNameToParams(const char *groupName, TrustedGroupEntry *groupParams);
52 int32_t AddGroupIdToParams(const char *groupId, TrustedGroupEntry *groupParams);
53 int32_t AddGroupOwnerToParams(const char *owner, TrustedGroupEntry *groupParams);
54 int32_t AddGroupTypeToParams(int groupType, TrustedGroupEntry *groupParams);
55 int32_t AddGroupVisibilityOrDefault(const CJson *jsonParams, TrustedGroupEntry *groupParams);
56 int32_t AddExpireTimeOrDefault(const CJson *jsonParams, TrustedGroupEntry *groupParams);
57 int32_t AddUserIdToGroupParams(const CJson *jsonParams, TrustedGroupEntry *groupParams);
58 int32_t AddSharedUserIdToGroupParams(const CJson *jsonParams, TrustedGroupEntry *groupParams);
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session.c281 static int32_t SetGroupId(const CJson *params, TrustedGroupEntry *groupParams) in SetGroupId() argument
288 if (!StringSetPointer(&groupParams->id, groupId)) { in SetGroupId()
295 static int32_t SetGroupName(const CJson *params, TrustedGroupEntry *groupParams) in SetGroupName() argument
302 if (!StringSetPointer(&groupParams->name, groupName)) { in SetGroupName()
309 static int32_t SetGroupOwner(const char *ownerAppId, TrustedGroupEntry *groupParams) in SetGroupOwner() argument
317 if (groupParams->managers.pushBackT(&groupParams->managers, ownerName) == NULL) { in SetGroupOwner()
325 static int32_t SetGroupType(TrustedGroupEntry *groupParams) in SetGroupType() argument
327 groupParams->type = PEER_TO_PEER_GROUP; in SetGroupType()
331 static int32_t SetGroupVisibility(const CJson *params, TrustedGroupEntry *groupParams) in SetGroupVisibility() argument
335 groupParams->visibility = groupVisibility; in SetGroupVisibility()
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c615 int32_t AddGroupNameToParams(const char *groupName, TrustedGroupEntry *groupParams) in AddGroupNameToParams() argument
617 if (!StringSetPointer(&groupParams->name, groupName)) { in AddGroupNameToParams()
624 int32_t AddGroupIdToParams(const char *groupId, TrustedGroupEntry *groupParams) in AddGroupIdToParams() argument
626 if (!StringSetPointer(&groupParams->id, groupId)) { in AddGroupIdToParams()
633 int32_t AddGroupOwnerToParams(const char *owner, TrustedGroupEntry *groupParams) in AddGroupOwnerToParams() argument
641 if (groupParams->managers.pushBackT(&groupParams->managers, ownerName) == NULL) { in AddGroupOwnerToParams()
649 int32_t AddGroupTypeToParams(int groupType, TrustedGroupEntry *groupParams) in AddGroupTypeToParams() argument
651 groupParams->type = groupType; in AddGroupTypeToParams()
655 int32_t AddGroupVisibilityOrDefault(const CJson *jsonParams, TrustedGroupEntry *groupParams) in AddGroupVisibilityOrDefault() argument
660 groupParams->visibility = groupVisibility; in AddGroupVisibilityOrDefault()
[all …]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/
Dsave_trusted_info_test.cpp92 static int32_t GenerateGroupParams(const CreateParams *params, TrustedGroupEntry *groupParams) in GenerateGroupParams() argument
94 if (!StringSetPointer(&groupParams->name, params->groupName)) { in GenerateGroupParams()
97 if (!StringSetPointer(&groupParams->id, params->groupId)) { in GenerateGroupParams()
105 if (groupParams->managers.pushBackT(&groupParams->managers, ownerName) == NULL) { in GenerateGroupParams()
109 groupParams->visibility = params->visibility; in GenerateGroupParams()
110 groupParams->type = PEER_TO_PEER_GROUP; in GenerateGroupParams()
111 groupParams->expireTime = DEFAULT_EXPIRE_TIME; in GenerateGroupParams()
137 TrustedGroupEntry *groupParams = CreateGroupEntry(); in AddTrustedGroup() local
138 if (groupParams == NULL) { in AddTrustedGroup()
141 int32_t res = GenerateGroupParams(params, groupParams); in AddTrustedGroup()
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/
Didentical_account_group.c46 …t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry *groupParams) in GenerateGroupParams() argument
54 if (((result = AddGroupTypeToParams(IDENTICAL_ACCOUNT_GROUP, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
55 ((result = AddGroupNameToParams(groupId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
56 ((result = AddGroupIdToParams(groupId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
57 ((result = AddUserIdToGroupParams(jsonParams, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
58 ((result = AddGroupOwnerToParams(appId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
59 ((result = AddGroupVisibilityOrDefault(jsonParams, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
60 ((result = AddExpireTimeOrDefault(jsonParams, groupParams)) != HC_SUCCESS)) { in GenerateGroupParams()
297 QueryGroupParams groupParams = InitQueryGroupParams(); in GetRelatedAcrossAccountGroups() local
298 groupParams.userId = StringGet(&groupEntry->userId); in GetRelatedAcrossAccountGroups()
[all …]
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dsave_trusted_info.c242 static int32_t GenerateGroupParams(const CmdParams *params, TrustedGroupEntry *groupParams) in GenerateGroupParams() argument
244 if (!StringSetPointer(&groupParams->name, params->groupName)) { in GenerateGroupParams()
248 if (!StringSetPointer(&groupParams->id, params->groupId)) { in GenerateGroupParams()
258 if (groupParams->managers.pushBackT(&groupParams->managers, ownerName) == NULL) { in GenerateGroupParams()
263 groupParams->visibility = params->visibility; in GenerateGroupParams()
264 groupParams->type = PEER_TO_PEER_GROUP; in GenerateGroupParams()
265 groupParams->expireTime = DEFAULT_EXPIRE_TIME; in GenerateGroupParams()
323 TrustedGroupEntry *groupParams = CreateGroupEntry(); in AddTrustedGroup() local
324 if (groupParams == NULL) { in AddTrustedGroup()
328 int32_t res = GenerateGroupParams(params, groupParams); in AddTrustedGroup()
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/
Dacross_account_group.c142 …t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry *groupParams) in GenerateGroupParams() argument
150 …if (((result = AddGroupTypeToParams(ACROSS_ACCOUNT_AUTHORIZE_GROUP, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
151 ((result = AddGroupNameToParams(groupId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
152 ((result = AddGroupIdToParams(groupId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
153 ((result = AddUserIdToGroupParams(jsonParams, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
154 ((result = AddSharedUserIdToGroupParams(jsonParams, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
155 ((result = AddGroupOwnerToParams(appId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
156 ((result = AddGroupVisibilityOrDefault(jsonParams, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
157 ((result = AddExpireTimeOrDefault(jsonParams, groupParams)) != HC_SUCCESS)) { in GenerateGroupParams()
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c135 …t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry *groupParams) in GenerateGroupParams() argument
148 if (((result = AddGroupTypeToParams(PEER_TO_PEER_GROUP, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
149 ((result = AddGroupNameToParams(groupName, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
150 ((result = AddGroupIdToParams(groupId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
151 ((result = AddGroupOwnerToParams(appId, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
152 ((result = AddGroupVisibilityOrDefault(jsonParams, groupParams)) != HC_SUCCESS) || in GenerateGroupParams()
153 ((result = AddExpireTimeOrDefault(jsonParams, groupParams)) != HC_SUCCESS)) { in GenerateGroupParams()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Dpeer_to_peer_group_test.cpp76 TrustedGroupEntry groupParams; variable
77 int32_t ret = GenerateGroupParams(nullptr, nullptr, &groupParams);
Dacross_account_group_test.cpp72 TrustedGroupEntry groupParams; variable
73 int32_t ret = GenerateGroupParams(nullptr, nullptr, &groupParams);
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c129 QueryGroupParams groupParams = InitQueryGroupParams(); in GetGroupEntryById() local
130 groupParams.groupId = groupId; in GetGroupEntryById()
131 if (QueryGroups(osAccountId, &groupParams, &groupEntryVec) != HC_SUCCESS) { in GetGroupEntryById()
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c760 QueryGroupParams groupParams = InitQueryGroupParams(); in PostDeviceBoundMsg() local
761 groupParams.groupId = StringGet(&deviceEntry->groupId); in PostDeviceBoundMsg()
762 TrustedGroupEntry **groupEntryPtr = QueryGroupEntryPtrIfMatch(&info->groups, &groupParams); in PostDeviceBoundMsg()
787 QueryGroupParams groupParams = InitQueryGroupParams(); in PostDeviceUnBoundMsg() local
788 groupParams.groupId = groupId; in PostDeviceUnBoundMsg()
789 TrustedGroupEntry **groupEntryPtr = QueryGroupEntryPtrIfMatch(&info->groups, &groupParams); in PostDeviceUnBoundMsg()
/base/security/device_auth/test/unittest/deviceauth/source/
Dgroup_operation_common_test.cpp43 …t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry *groupParams) in GenerateGroupParams() argument
47 (void)groupParams; in GenerateGroupParams()