Searched refs:sharedUserId (Results 1 – 8 of 8) sorted by relevance
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/ |
D | across_account_group.c | 54 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/ |
D | data_manager.h | 37 HcString sharedUserId; /* the shared user account id */ member 63 const char *sharedUserId; member
|
/base/security/device_auth/services/data_manager/src/ |
D | data_manager.c | 41 TlvString sharedUserId; member 88 TLV_MEMBER(TlvString, sharedUserId, 0x4007) 240 if (!StringSet(&returnEntry->sharedUserId, entry->sharedUserId)) { in GenerateGroupEntryFromEntry() 305 if (!StringSet(&entry->sharedUserId, group->sharedUserId.data)) { in GenerateGroupEntryFromTlv() 533 if (!StringSet(&element->sharedUserId.data, entry->sharedUserId)) { in SetGroupElement() 680 …if ((params->sharedUserId != NULL) && (strcmp(params->sharedUserId, StringGet(&entry->sharedUserId… in CompareQueryGroupParams() 865 ptr->sharedUserId = CreateString(); in CreateGroupEntry() 876 DeleteString(&groupEntry->sharedUserId); in DestroyGroupEntry() 1209 …f(fd, "||%-12s = %-46.8s| |\n", "sharedUserId", StringGet(&group->sharedUserId)); in DumpGroup()
|
/base/security/device_auth/services/group_manager/src/group_operation/ |
D | group_operation_common.c | 403 const char *sharedUserId = StringGet(&groupInfo->sharedUserId); in AddSharedUserIdToReturnIfAcrossAccountGroup() local 404 if (sharedUserId == NULL) { in AddSharedUserIdToReturnIfAcrossAccountGroup() 408 if (AddStringToJson(json, FIELD_SHARED_USER_ID, sharedUserId) != HC_SUCCESS) { in AddSharedUserIdToReturnIfAcrossAccountGroup() 696 char *sharedUserId = NULL; in AddSharedUserIdToGroupParams() local 697 int32_t result = GetSharedUserIdFromJson(jsonParams, &sharedUserId); in AddSharedUserIdToGroupParams() 701 if (!StringSetPointer(&groupParams->sharedUserId, sharedUserId)) { in AddSharedUserIdToGroupParams() 703 HcFree(sharedUserId); in AddSharedUserIdToGroupParams() 706 HcFree(sharedUserId); in AddSharedUserIdToGroupParams() 1140 int32_t GetSharedUserIdFromJson(const CJson *jsonParams, char **sharedUserId) in GetSharedUserIdFromJson() argument 1142 if ((jsonParams == NULL) || (sharedUserId == NULL)) { in GetSharedUserIdFromJson() [all …]
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
D | group_operation_common_test.cpp | 408 char *sharedUserId = nullptr; variable 409 int32_t ret = GetSharedUserIdFromJson(nullptr, &sharedUserId); 423 char *sharedUserId = nullptr; variable 425 int32_t ret = GetSharedUserIdFromJson(jsonParams, &sharedUserId);
|
/base/security/device_auth/services/group_manager/inc/ |
D | group_operation_common.h | 84 int32_t GetSharedUserIdFromJson(const CJson *jsonParams, char **sharedUserId);
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/ |
D | account_related_group_auth.c | 158 …NTICAL_ACCOUNT_GROUP) ? StringGet(&(groupEntry->userId)) : StringGet(&(groupEntry->sharedUserId))); in IsPeerInAccountRelatedGroup() 376 queryParams.sharedUserId = peerUserId; in QueryAuthGroupForServer()
|
/base/security/device_auth/services/session_manager/src/session/v2/ |
D | dev_session_v2.c | 974 …if (AddStringToJson(impl->context, FIELD_SHARED_USER_ID, StringGet(&entry->sharedUserId)) != HC_SU… in AddAcrossAccountGroupInfoToContext() 1057 queryParams.sharedUserId = peerUserId; in AddAcrossAccountAuthInfoToContext()
|