Home
last modified time | relevance | path

Searched refs:groupEntry (Results 1 – 10 of 10) sorted by relevance

/base/security/device_auth/services/group_manager/inc/broadcast_manager/
Dbroadcast_manager.h27 void (*postOnGroupCreated)(const TrustedGroupEntry *groupEntry);
28 void (*postOnGroupDeleted)(const TrustedGroupEntry *groupEntry);
29 void (*postOnDeviceBound)(const char *peerUdid, const TrustedGroupEntry *groupEntry);
30 void (*postOnDeviceUnBound)(const char *peerUdid, const TrustedGroupEntry *groupEntry);
/base/security/device_auth/services/group_manager/src/broadcast_manager/
Dbroadcast_manager.c36 static int32_t GenerateMessage(const TrustedGroupEntry *groupEntry, char **returnGroupInfo) in GenerateMessage() argument
43 int32_t result = GenerateReturnGroupInfo(groupEntry, message); in GenerateMessage()
58 static void PostOnGroupCreated(const TrustedGroupEntry *groupEntry) in PostOnGroupCreated() argument
60 if (groupEntry == NULL) { in PostOnGroupCreated()
65 if (GenerateMessage(groupEntry, &messageStr) != HC_SUCCESS) { in PostOnGroupCreated()
81 static void PostOnGroupDeleted(const TrustedGroupEntry *groupEntry) in PostOnGroupDeleted() argument
83 if (groupEntry == NULL) { in PostOnGroupDeleted()
88 if (GenerateMessage(groupEntry, &messageStr) != HC_SUCCESS) { in PostOnGroupDeleted()
104 static void PostOnDeviceBound(const char *peerUdid, const TrustedGroupEntry *groupEntry) in PostOnDeviceBound() argument
106 if ((peerUdid == NULL) || (groupEntry == NULL)) { in PostOnDeviceBound()
[all …]
/base/security/device_auth/services/data_manager/inc/
Ddata_manager.h44 TrustedGroupEntry *groupEntry; member
82 int32_t AddGroup(int32_t osAccountId, const TrustedGroupEntry *groupEntry);
100 void DestroyGroupEntry(TrustedGroupEntry *groupEntry);
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c92 static bool IsPeerInAccountRelatedGroup(const TrustedGroupEntry *groupEntry, const char *peerUserId… in IsPeerInAccountRelatedGroup() argument
95 …((type == IDENTICAL_ACCOUNT_GROUP) ? StringGet(&(groupEntry->userId)) : StringGet(&(groupEntry->sh… in IsPeerInAccountRelatedGroup()
415 static int32_t AddSelfUserId(const TrustedGroupEntry *groupEntry, CJson *dataFromClient) in AddSelfUserId() argument
417 const char *selfUserId = StringGet(&groupEntry->userId); in AddSelfUserId()
429 static int32_t AddGroupIdForServer(const TrustedGroupEntry *groupEntry, CJson *dataFromClient) in AddGroupIdForServer() argument
431 const char *groupId = StringGet(&groupEntry->id); in AddGroupIdForServer()
443 static int32_t AddSelfDevInfoForServer(int32_t osAccountId, const TrustedGroupEntry *groupEntry, CJ… in AddSelfDevInfoForServer() argument
452 const char *groupId = StringGet(&groupEntry->id); in AddSelfDevInfoForServer()
507 TrustedGroupEntry *groupEntry = accountVec.get(&accountVec, 0); in AddSelfAccountInfoForServer() local
508 if (groupEntry == NULL) { in AddSelfAccountInfoForServer()
[all …]
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c261 returnEntry->groupEntry = NULL; in GenerateDeviceEntryFromEntry()
323 deviceEntry->groupEntry = NULL; in GenerateDeviceEntryFromTlv()
737 static void PostGroupCreatedMsg(const TrustedGroupEntry *groupEntry) in PostGroupCreatedMsg() argument
742 GetBroadcaster()->postOnGroupCreated(groupEntry); in PostGroupCreatedMsg()
745 static void PostGroupDeletedMsg(const TrustedGroupEntry *groupEntry) in PostGroupDeletedMsg() argument
750 GetBroadcaster()->postOnGroupDeleted(groupEntry); in PostGroupDeletedMsg()
826 void DestroyGroupEntry(TrustedGroupEntry *groupEntry) in DestroyGroupEntry() argument
828 DeleteString(&groupEntry->name); in DestroyGroupEntry()
829 DeleteString(&groupEntry->id); in DestroyGroupEntry()
830 DeleteString(&groupEntry->userId); in DestroyGroupEntry()
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c290 … TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in GetRelatedGroups() local
291 if (groupEntry == NULL) { in GetRelatedGroups()
296 if (returnGroupEntryVec->pushBackT(returnGroupEntryVec, groupEntry) == NULL) { in GetRelatedGroups()
297 DestroyGroupEntry(groupEntry); in GetRelatedGroups()
467 int32_t GenerateReturnGroupInfo(const TrustedGroupEntry *groupEntry, CJson *returnJson) in GenerateReturnGroupInfo() argument
470 if (((result = AddGroupNameToReturn(groupEntry, returnJson)) != HC_SUCCESS) || in GenerateReturnGroupInfo()
471 ((result = AddGroupIdToReturn(groupEntry, returnJson)) != HC_SUCCESS) || in GenerateReturnGroupInfo()
472 ((result = AddGroupOwnerToReturn(groupEntry, returnJson)) != HC_SUCCESS) || in GenerateReturnGroupInfo()
473 ((result = AddGroupTypeToReturn(groupEntry, returnJson)) != HC_SUCCESS) || in GenerateReturnGroupInfo()
474 ((result = AddGroupVisibilityToReturn(groupEntry, returnJson)) != HC_SUCCESS) || in GenerateReturnGroupInfo()
[all …]
Dgroup_operation.c214 … TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in QueryRelatedGroupsForGetPk() local
215 if (groupEntry == NULL) { in QueryRelatedGroupsForGetPk()
219 if (groupEntry->visibility != GROUP_VISIBILITY_PUBLIC) { in QueryRelatedGroupsForGetPk()
220 DestroyGroupEntry(groupEntry); in QueryRelatedGroupsForGetPk()
223 if (returnGroupEntryVec->pushBackT(returnGroupEntryVec, groupEntry) == NULL) { in QueryRelatedGroupsForGetPk()
225 DestroyGroupEntry(groupEntry); in QueryRelatedGroupsForGetPk()
878 TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, groupId); in GetAccessibleGroupInfoById() local
879 if (groupEntry == NULL) { in GetAccessibleGroupInfoById()
886 DestroyGroupEntry(groupEntry); in GetAccessibleGroupInfoById()
889 int32_t result = GenerateReturnGroupInfo(groupEntry, groupInfoJson); in GetAccessibleGroupInfoById()
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/
Didentical_account_group.c294 TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, groupId); in GetRelatedAcrossAccountGroups() local
295 if (groupEntry == NULL) { in GetRelatedAcrossAccountGroups()
300 groupParams.userId = StringGet(&groupEntry->userId); in GetRelatedAcrossAccountGroups()
303 DestroyGroupEntry(groupEntry); in GetRelatedAcrossAccountGroups()
/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h29 int32_t GenerateReturnGroupInfo(const TrustedGroupEntry *groupEntry, CJson *returnJson);
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c29 returnEntry->groupEntry = NULL; in GaDeepCopyDeviceEntry()