Home
last modified time | relevance | path

Searched defs:groupId (Results 1 – 25 of 42) sorted by relevance

12

/base/security/device_auth/services/legacy/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c131 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams()
155 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams()
171 char *groupId = NULL; in CreateGroupInner() local
186 static int32_t GetPeerDevUserTypeFromDb(int32_t osAccountId, const char *groupId, const char *peerA… in GetPeerDevUserTypeFromDb()
204 static int32_t DelPeerDevAndKeyInfo(int32_t osAccountId, const char *groupId, const char *peerAuthI… in DelPeerDevAndKeyInfo()
241 static int32_t DelAllPeerDevAndKeyInfo(int32_t osAccountId, const char *groupId) in DelAllPeerDevAndKeyInfo()
268 static int32_t AddAuthIdAndUserTypeToParams(int32_t osAccountId, const char *groupId, CJson *jsonPa… in AddAuthIdAndUserTypeToParams()
304 static int32_t DelGroupAndSelfKeyInfo(int32_t osAccountId, const char *groupId, CJson *jsonParams) in DelGroupAndSelfKeyInfo()
334 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in HandleLocalUnbind() local
363 static int32_t CheckPeerDeviceStatus(int32_t osAccountId, const char *groupId, const CJson *jsonPar… in CheckPeerDeviceStatus()
[all …]
/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/
Dgroup_operation_common.c110 const char *groupId) in GetTrustedDeviceEntryById()
136 TrustedGroupEntry *GetGroupEntryById(int32_t osAccountId, const char *groupId) in GetGroupEntryById()
161 bool IsTrustedDeviceInGroup(int32_t osAccountId, const char *groupId, const char *deviceId, bool is… in IsTrustedDeviceInGroup()
197 bool IsGroupOwner(int32_t osAccountId, const char *groupId, const char *appId) in IsGroupOwner()
219 bool IsGroupExistByGroupId(int32_t osAccountId, const char *groupId) in IsGroupExistByGroupId()
233 int32_t CheckGroupAccessible(int32_t osAccountId, const char *groupId, const char *appId) in CheckGroupAccessible()
254 int32_t CheckGroupEditAllowed(int32_t osAccountId, const char *groupId, const char *appId) in CheckGroupEditAllowed()
325 … GetTrustedDevInfoById(int32_t osAccountId, const char *deviceId, bool isUdid, const char *groupId, in GetTrustedDevInfoById()
342 int32_t GetTrustedDevices(int32_t osAccountId, const char *groupId, DeviceEntryVec *returnDeviceEnt… in GetTrustedDevices()
396 uint32_t GetCurDeviceNumByGroupId(int32_t osAccountId, const char *groupId) in GetCurDeviceNumByGroupId()
[all …]
/base/security/device_auth/services/legacy/group_manager/src/group_operation/identical_account_group/
Didentical_account_group.c30 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams()
46 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams()
133 static int32_t DelDeviceById(int32_t osAccountId, const char *groupId, const char *deviceId, bool i… in DelDeviceById()
280 static int32_t DelAcrossAccountGroupAndTokens(int32_t osAccountId, const char *groupId) in DelAcrossAccountGroupAndTokens()
290 static int32_t GetRelatedAcrossAccountGroups(int32_t osAccountId, const char *groupId, GroupEntryVe… in GetRelatedAcrossAccountGroups()
305 static int32_t DelRelatedAcrossAccountGroups(int32_t osAccountId, const char *groupId) in DelRelatedAcrossAccountGroups()
321 static int32_t DelGroupAndTokens(int32_t osAccountId, const char *groupId) in DelGroupAndTokens()
337 static int32_t GenerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDevice… in GenerateTrustedDevParams()
365 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in AddDeviceAndToken() local
393 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in DelPeerDevice() local
[all …]
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/group_auth_common/
Dgroup_auth_data_operation.c93 static int32_t GetGroupEntryById(int32_t osAccountId, const char *groupId, TrustedGroupEntry *retur… in GetGroupEntryById()
117 bool GaIsGroupAccessible(int32_t osAccountId, const char *groupId, const char *appId) in GaIsGroupAccessible()
139 bool isUdid, const char *groupId, TrustedDeviceEntry *returnDeviceEntry) in GaGetTrustedDeviceEntryById()
173 const char *groupId) in GaIsDeviceInGroup()
201 int32_t GaGetLocalDeviceInfo(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *localAut… in GaGetLocalDeviceInfo()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/across_account_group/
Dacross_account_group.c122 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams()
138 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams()
328 static int32_t DelGroupAndTokens(int32_t osAccountId, const char *groupId) in DelGroupAndTokens()
340 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in CheckChangeParams() local
356 static int32_t DelDeviceById(int32_t osAccountId, const char *groupId, const char *deviceId, bool i… in DelDeviceById()
368 static int32_t GenerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDevice… in GenerateTrustedDevParams()
396 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in AddDeviceAndToken() local
424 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in DelPeerDeviceAndToken() local
458 static int32_t AddGroupAndLocalDev(int32_t osAccountId, CJson *jsonParams, const char *groupId) in AddGroupAndLocalDev()
486 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in CheckUserIdValid() local
[all …]
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session_common.c48 static int32_t AddGroupId(const char *groupId, CJson *params) in AddGroupId()
129 static int32_t AddGroupInfoToSessionParams(const char *groupId, const CJson *jsonParams, CJson *par… in AddGroupInfoToSessionParams()
143 static int32_t CheckAuthIdAndUserTypeValid(int32_t osAccountId, int userType, const char *groupId, … in CheckAuthIdAndUserTypeValid()
175 static int32_t AddAuthIdAndUserTypeIfValidOrDefault(int32_t osAccountId, const char *groupId, const… in AddAuthIdAndUserTypeIfValidOrDefault()
240 static int32_t AddDevInfoToSessionParams(int32_t osAccountId, const char *groupId, const CJson *jso… in AddDevInfoToSessionParams()
252 static int32_t GenerateParamsByInput(int32_t osAccountId, const char *groupId, const CJson *jsonPar… in GenerateParamsByInput()
278 static int32_t AddGroupInfoByDatabase(int32_t osAccountId, const char *groupId, CJson *params) in AddGroupInfoByDatabase()
311 static int32_t AddDevInfoByDatabase(int32_t osAccountId, const char *groupId, CJson *params) in AddDevInfoByDatabase()
339 static int32_t GenerateParamsByDatabase(int32_t osAccountId, const char *groupId, CJson *params) in GenerateParamsByDatabase()
348 … int32_t AddSelfUpgradeFlag(CJson *params, bool isClient, int32_t osAccountId, const char *groupId, in AddSelfUpgradeFlag()
[all …]
Dcompatible_bind_sub_session.c35 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in CheckInvitePeer() local
156 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in GenerateKeyPairIfNeeded() local
175 const char *groupId = GetStringFromJson(jsonParams, FIELD_GROUP_ID); in CheckServerStatusIfNotInvite() local
298 …ic int32_t InformSelfBindSuccess(const char *peerAuthId, const char *peerUdid, const char *groupId, in InformSelfBindSuccess()
324 const char *groupId = GetStringFromJson(params, FIELD_GROUP_ID); in SetGroupId() local
424 static void GenerateDevAuthParams(const char *authId, const char *udid, const char *groupId, in GenerateDevAuthParams()
435 …dTrustDevToDatabase(int32_t osAccountId, const char *authId, const char *udid, const char *groupId, in AddTrustDevToDatabase()
453 static int32_t AddGroupAndLocalDevIfNotExist(const char *groupId, const CompatibleBindSubSession *s… in AddGroupAndLocalDevIfNotExist()
479 const char *groupId, const CompatibleBindSubSession *session) in AddPeerDevToGroup()
492 static int32_t AddGroupAndDev(const char *peerAuthId, const char *peerUdid, const char *groupId, in AddGroupAndDev()
[all …]
/base/security/device_auth/services/identity_manager/src/
Didentity_group.c69 static void GetGroupInfoByGroupId(int32_t osAccountId, const char *groupId, GroupEntryVec *groupEnt… in GetGroupInfoByGroupId()
96 int32_t osAccountId, int32_t groupType, const char *deviceId, const char *groupId, bool isUdid) in IsDeviceInGroup()
164 int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info) in GetAccountUnrelatedIdentityInfo()
228 const char *groupId = StringGet(&groupEntry->id); in GetIdentityInfo() local
273 const char *groupId = StringGet(&(groupEntry->id)); in GetIdentityInfos() local
307 const char *groupId = GetStringFromJson(in, FIELD_GROUP_ID); in GetCredInfosByPeerIdentity() local
379 const char *groupId = GetStringFromJson(urlJson, FIELD_GROUP_ID); in CheckAndGetP2pCredInfo() local
479 static int32_t AuthGeneratePsk(const CJson *in, const char *groupId, const Uint8Buff *seed, Uint8Bu… in AuthGeneratePsk()
521 static int32_t GetSharedSecretForP2pInIso(const CJson *in, const char *groupId, Uint8Buff *sharedSe… in GetSharedSecretForP2pInIso()
553 …int32_t osAccountId, const char *groupId, Uint8Buff *authIdBuff, int32_t *userType, int32_t *upgra… in GetSelfAuthIdAndUserType()
[all …]
Dcert_operation.c51 static int32_t GetIdentityInfoByType(int32_t keyType, int32_t trustType, const char *groupId, Ident… in GetIdentityInfoByType()
244 const char *groupId = StringGet(&groupEntry->id); in GetSelfDeviceEntryByPeerCert() local
438 static int32_t GetLocalDeviceType(int32_t osAccountId, const CJson *in, const char *groupId, int32_… in GetLocalDeviceType()
460 static int32_t GenerateAuthTokenForAccessory(int32_t osAccountId, const char *groupId, Uint8Buff *a… in GenerateAuthTokenForAccessory()
504 int32_t osAccountId, const CJson *in, const char *groupId, Uint8Buff *authTokenAlias) in GenerateTokenAliasForController()
543 const char *groupId = GetStringFromJson(urlJson, FIELD_GROUP_ID); in GenerateAuthTokenByDevType() local
564 int32_t osAccountId, const char *groupId, IdentityInfo *info, bool isNeedGeneratePdid) in GetSelfAccountIdentityInfo()
613 int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info) in GetAccountRelatedCredInfo()
821 const char *groupId = GetStringFromJson(urlJson, FIELD_GROUP_ID); in GetAccountSymCredInfoByPeerUrl() local
Didentity_common.c99 int32_t GetSelfDeviceEntry(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *deviceEntr… in GetSelfDeviceEntry()
121 … int32_t osAccountId, const CJson *in, const char *groupId, TrustedDeviceEntry *returnDeviceEntry) in GetPeerDeviceEntry()
/base/security/device_auth/services/legacy/group_manager/src/
Dgroup_manager.c81 int32_t CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId) in CheckAccessToGroupImpl()
88 int32_t GetGroupInfoByIdImpl(int32_t osAccountId, const char *appId, const char *groupId, char **re… in GetGroupInfoByIdImpl()
119 …viceInfoByIdImpl(int32_t osAccountId, const char *appId, const char *deviceId, const char *groupId, in GetDeviceInfoByIdImpl()
128 int32_t GetTrustedDevicesImpl(int32_t osAccountId, const char *appId, const char *groupId, in GetTrustedDevicesImpl()
136 bool IsDeviceInGroupImpl(int32_t osAccountId, const char *appId, const char *groupId, const char *d… in IsDeviceInGroupImpl()
/base/security/device_auth/test/unittest/deviceauth/source/
Dgroup_operation_common_test.cpp44 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams()
52 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams()
298 const char *groupId = "ABCD"; variable
441 const char *groupId = nullptr; variable
456 const char *groupId = nullptr; variable
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_common.c104 static void GetGroupInfoByGroupId(int32_t osAccountId, const char *groupId, in GetGroupInfoByGroupId()
114 static int32_t AddGeneralParams(const char *groupId, int32_t groupType, const TrustedDeviceEntry *l… in AddGeneralParams()
141 static int32_t ExtractAndAddParams(int32_t osAccountId, const char *groupId, in ExtractAndAddParams()
176 const char *peerAuthId, const char *groupId) in AddUpgradeFlagToParams()
239 const char *groupId = StringGet(&(groupInfo->id)); in FillAuthParams() local
273 static int32_t GetCandidateAuthInfo(int32_t osAccountId, const char *groupId, in GetCandidateAuthInfo()
586 const char *groupId = GetStringFromJson(param, FIELD_GROUP_ID); in GetAuthParamsVec() local
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c237 const char *groupId = StringGet(&tempEntry->id); in GaGetAccountGroup() local
269 …c int32_t FillAccountCredentialInfo(int32_t osAccountId, const char *peerUdid, const char *groupId, in FillAccountCredentialInfo()
309 const char *groupId = StringGet(&entry->id); in FillAccountAuthInfo() local
331 static bool IsDeviceImportedByCloud(int32_t osAccountId, const char *peerUdid, const char *groupId) in IsDeviceImportedByCloud()
534 const char *groupId = StringGet(&groupEntry->id); in AddGroupIdForServer() local
555 const char *groupId = StringGet(&groupEntry->id); in AddSelfDevInfoForServer() local
720 static int32_t PrepareTrustedDeviceInfo(const char *peerUdid, const char *groupId, in PrepareTrustedDeviceInfo()
768 const char *groupId = GetStringFromJson(authParam, FIELD_GROUP_ID); in AddTrustedDeviceForAccount() local
/base/security/device_auth/services/data_manager/inc/
Ddata_manager.h47 HcString groupId; member
62 const char *groupId; member
72 const char *groupId; member
/base/security/device_auth/services/session_manager/inc/session/v2/expand_sub_session/expand_process_lib/
Dauth_code_import.h26 const char *groupId; member
Dpub_key_exchange.h26 const char *groupId; member
Dsave_trusted_info.h29 const char *groupId; member
/base/security/device_auth/services/legacy/group_manager/src/group_operation/
Dgroup_operation.c177 static bool IsQueryParamsValid(int groupType, const char *groupId, const char *groupName, const cha… in IsQueryParamsValid()
219 static int32_t GetPkByParams(int32_t osAccountId, const char *groupId, const TrustedDeviceEntry *de… in GetPkByParams()
262 static int32_t GeneratePkInfo(int32_t osAccountId, const char *queryUdid, const char *groupId, CJso… in GeneratePkInfo()
296 const char *groupId = StringGet(&((*entry)->id)); in AddAllPkInfoToList() local
410 const char *groupId = NULL; in DeleteGroup() local
856 static int32_t CheckAccessToGroup(int32_t osAccountId, const char *appId, const char *groupId) in CheckAccessToGroup()
874 …tic int32_t GetAccessibleGroupInfoById(int32_t osAccountId, const char *appId, const char *groupId, in GetAccessibleGroupInfoById()
945 const char *groupId = GetStringFromJson(queryParamsJson, FIELD_GROUP_ID); in GetAccessibleGroupInfo() local
1036 const DeviceQueryParams *devQueryParams, const char *groupId, char **returnDeviceInfo) in GetAccessibleDeviceInfoById()
1088 …ic int32_t GetAccessibleTrustedDevices(int32_t osAccountId, const char *appId, const char *groupId, in GetAccessibleTrustedDevices()
[all …]
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_util.c28 const char *groupId = GetStringFromJson(context, FIELD_GROUP_ID); in GetPeerDeviceEntryByContext() local
218 static int32_t SetPeerAuthIdByDb(CJson *context, const char *groupId) in SetPeerAuthIdByDb()
312 const char *groupId = GetStringFromJson(urlJson, FIELD_GROUP_ID); in SetPeerAuthIdToContextIfNeeded() local
519 const char *groupId) in GetDeviceEntryById()
/base/security/device_auth/test/fuzztest/group_manage/groupoperationcommon_fuzzer/
Dgroupoperationcommon_fuzzer.cpp39 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams()
47 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams()
238 const char *groupId = "ABCD"; in GroupOperationTest34() local
361 const char *groupId = nullptr; in GroupOperationTest54() local
374 const char *groupId = nullptr; in GroupOperationTest56() local
/base/security/device_auth/services/identity_manager/src/mock/
Dcert_operation_mock.c20 int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info) in GetAccountRelatedCredInfo()
/base/security/device_auth/services/
Ddevice_auth.c104 static const char *GetUdidByGroup(int32_t osAccountId, const char *groupId, const char *deviceIdHas… in GetUdidByGroup()
146 const char *groupId = StringGet(&(groupEntry->id)); in GetDeviceIdByUdidHash() local
178 const char *groupId = GetStringFromJson(receivedMsg, FIELD_GROUP_ID); in AddGroupInfoToContextByInput() local
229 static int32_t AddGroupInfoToContextByDb(const char *groupId, CJson *context) in AddGroupInfoToContextByDb()
260 static int32_t AddDevInfoToContextByDb(const char *groupId, CJson *context) in AddDevInfoToContextByDb()
306 const char *groupId = GetStringFromJson(context, FIELD_GROUP_ID); in AddClientReqInfoToContext() local
489 const char *groupId = GetStringFromJson(context, FIELD_GROUP_ID); in CheckGroupVisibility() local
638 const char *groupId = GetStringFromJson(receivedMsg, FIELD_GROUP_ID); in AddServerReqInfoToContext() local
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_unrelated_group_auth/
Daccount_unrelated_group_auth.c84 const char *groupId = GetStringFromJson(authParam, FIELD_SERVICE_TYPE); in AddGroupIdToSelfData() local
363 const char *groupId = StringGet(&entry->id); in FillNonAccountAuthInfo() local
/base/security/device_auth/frameworks/src/
Dipc_sdk.c708 static int32_t IpcGmCheckAccessToGroup(int32_t osAccountId, const char *appId, const char *groupId) in IpcGmCheckAccessToGroup()
854 static int32_t IpcGmGetGroupInfoById(int32_t osAccountId, const char *appId, const char *groupId, c… in IpcGmGetGroupInfoById()
1160 const char *peerUdid, const char *groupId, uintptr_t callCtx) in FormParamsForGettingDeviceInfo()
1188 …etDeviceInfoById(int32_t osAccountId, const char *appId, const char *peerUdid, const char *groupId, in IpcGmGetDeviceInfoById()
1256 const char *groupId, char **outDevInfoVec, uint32_t *deviceNum) in IpcGmGetTrustedDevices()
1308 static bool IpcGmIsDeviceInGroup(int32_t osAccountId, const char *appId, const char *groupId, const… in IpcGmIsDeviceInGroup()

12