Home
last modified time | relevance | path

Searched refs:sharedUserId (Results 1 – 6 of 6) sorted by relevance

/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/
Dacross_account_group.c54 static int32_t GenerateGroupId(const char *userId, const char *sharedUserId, char **returnGroupId) in GenerateGroupId() argument
60 const char *secondUserId = sharedUserId; in GenerateGroupId()
62 firstUserId = sharedUserId; in GenerateGroupId()
166 char *sharedUserId = NULL; in GenerateAcrossAccountGroupId() local
171 result = GetSharedUserIdFromJson(jsonParams, &sharedUserId); in GenerateAcrossAccountGroupId()
176 result = GenerateGroupId(userId, sharedUserId, returnGroupId); in GenerateAcrossAccountGroupId()
178 HcFree(sharedUserId); in GenerateAcrossAccountGroupId()
228 const char *sharedUserId = GetStringFromJson(jsonParams, FIELD_PEER_USER_ID); in AssertSharedUserIdValid() local
229 if (sharedUserId == NULL) { in AssertSharedUserIdValid()
233 if (strcmp(sharedUserId, userId) == 0) { in AssertSharedUserIdValid()
[all …]
/base/security/device_auth/services/data_manager/inc/
Ddata_manager.h37 HcString sharedUserId; /* the shared user account id */ member
63 const char *sharedUserId; member
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c39 TlvString sharedUserId; member
86 TLV_MEMBER(TlvString, sharedUserId, 0x4007)
238 if (!StringSet(&returnEntry->sharedUserId, entry->sharedUserId)) { in GenerateGroupEntryFromEntry()
303 if (!StringSet(&entry->sharedUserId, group->sharedUserId.data)) { in GenerateGroupEntryFromTlv()
531 if (!StringSet(&element->sharedUserId.data, entry->sharedUserId)) { in SetGroupElement()
678 …if ((params->sharedUserId != NULL) && (strcmp(params->sharedUserId, StringGet(&entry->sharedUserId in CompareQueryGroupParams()
820 ptr->sharedUserId = CreateString(); in CreateGroupEntry()
831 DeleteString(&groupEntry->sharedUserId); in DestroyGroupEntry()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c416 const char *sharedUserId = StringGet(&groupInfo->sharedUserId); in AddSharedUserIdToReturnIfAcrossAccountGroup() local
417 if (sharedUserId == NULL) { in AddSharedUserIdToReturnIfAcrossAccountGroup()
421 if (AddStringToJson(json, FIELD_SHARED_USER_ID, sharedUserId) != HC_SUCCESS) { in AddSharedUserIdToReturnIfAcrossAccountGroup()
707 char *sharedUserId = NULL; in AddSharedUserIdToGroupParams() local
708 int32_t result = GetSharedUserIdFromJson(jsonParams, &sharedUserId); in AddSharedUserIdToGroupParams()
712 if (!StringSetPointer(&groupParams->sharedUserId, sharedUserId)) { in AddSharedUserIdToGroupParams()
714 HcFree(sharedUserId); in AddSharedUserIdToGroupParams()
717 HcFree(sharedUserId); in AddSharedUserIdToGroupParams()
1153 int32_t GetSharedUserIdFromJson(const CJson *jsonParams, char **sharedUserId) in GetSharedUserIdFromJson() argument
1155 if ((jsonParams == NULL) || (sharedUserId == NULL)) { in GetSharedUserIdFromJson()
[all …]
/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h83 int32_t GetSharedUserIdFromJson(const CJson *jsonParams, char **sharedUserId);
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c95 …NTICAL_ACCOUNT_GROUP) ? StringGet(&(groupEntry->userId)) : StringGet(&(groupEntry->sharedUserId))); in IsPeerInAccountRelatedGroup()
401 queryParams.sharedUserId = peerUserId; in QueryAuthGroupForServer()