Home
last modified time | relevance | path

Searched refs:TrustedDeviceEntry (Results 1 – 25 of 31) sorted by relevance

12

/base/security/device_auth/services/data_manager/inc/
Ddata_manager.h55 } TrustedDeviceEntry; typedef
56 DECLARE_HC_VECTOR(DeviceEntryVec, TrustedDeviceEntry*)
84 int32_t AddTrustedDevice(int32_t osAccountId, const TrustedDeviceEntry *deviceEntry);
90 bool GenerateDeviceEntryFromEntry(const TrustedDeviceEntry *entry, TrustedDeviceEntry *returnEntry);
93 TrustedDeviceEntry *DeepCopyDeviceEntry(const TrustedDeviceEntry *entry);
99 TrustedDeviceEntry *CreateDeviceEntry(void);
101 void DestroyDeviceEntry(TrustedDeviceEntry *deviceEntry);
/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h30 int32_t GenerateReturnDevInfo(const TrustedDeviceEntry *deviceEntry, CJson *returnJson);
60 int32_t AddSelfUdidToParams(TrustedDeviceEntry *devParams);
61 int32_t AddUdidToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams);
62 int32_t AddAuthIdToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams);
63 int32_t AddAuthIdToParamsOrDefault(const CJson *jsonParams, TrustedDeviceEntry *devParams);
64 int32_t AddUserTypeToParamsOrDefault(const CJson *jsonParams, TrustedDeviceEntry *devParams);
65 int32_t AddSourceToParams(RelationShipSource source, TrustedDeviceEntry *devParams);
66 int32_t AddCredTypeToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams);
67 int32_t AddServiceTypeToParams(const char *groupId, TrustedDeviceEntry *devParams);
68 int32_t AddGroupIdToDevParams(const char *groupId, TrustedDeviceEntry *devParams);
[all …]
/base/security/device_auth/services/group_auth/inc/
Dgroup_auth_data_operation.h27 bool isUdid, const char *groupId, TrustedDeviceEntry *returnDeviceEntry);
30 int32_t GaGetLocalDeviceInfo(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *localAut…
Dbase_group_auth.h34 const TrustedDeviceEntry *localAuthInfo, CJson *paramsData);
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c112 IMPLEMENT_HC_VECTOR(DeviceEntryVec, TrustedDeviceEntry*, 1)
261 bool GenerateDeviceEntryFromEntry(const TrustedDeviceEntry *entry, TrustedDeviceEntry *returnEntry) in GenerateDeviceEntryFromEntry()
323 static bool GenerateDeviceEntryFromTlv(TlvDeviceElement *device, TrustedDeviceEntry *deviceEntry) in GenerateDeviceEntryFromTlv()
388 TrustedDeviceEntry *entry = CreateDeviceEntry(); in LoadDevices()
551 static bool SetDeviceElement(TlvDeviceElement *element, TrustedDeviceEntry *entry) in SetDeviceElement()
606 TrustedDeviceEntry **entry; in SaveDevices()
698 static bool CompareQueryDeviceParams(const QueryDeviceParams *params, const TrustedDeviceEntry *ent… in CompareQueryDeviceParams()
727 static TrustedDeviceEntry **QueryDeviceEntryPtrIfMatch(const DeviceEntryVec *vec, const QueryDevice… in QueryDeviceEntryPtrIfMatch()
730 TrustedDeviceEntry **entry; in QueryDeviceEntryPtrIfMatch()
755 static void PostDeviceBoundMsg(OsAccountTrustedInfo *info, const TrustedDeviceEntry *deviceEntry) in PostDeviceBoundMsg()
[all …]
/base/security/device_auth/services/creds_manager/inc/
Dcreds_operation_utils.h27 int32_t GetSelfDeviceEntry(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *deviceEntr…
30 TrustedDeviceEntry *returnDeviceEntry);
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c26 static bool GaDeepCopyDeviceEntry(const TrustedDeviceEntry *entry, TrustedDeviceEntry *returnEntry) in GaDeepCopyDeviceEntry()
176 bool isUdid, const char *groupId, TrustedDeviceEntry *returnDeviceEntry) in GaGetTrustedDeviceEntryById()
183 TrustedDeviceEntry **deviceEntry = NULL; in GaGetTrustedDeviceEntryById()
218 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GaIsDeviceInGroup()
238 int32_t GaGetLocalDeviceInfo(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *localAut… in GaGetLocalDeviceInfo()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c73 TrustedDeviceEntry *GetTrustedDeviceEntryById(int32_t osAccountId, const char *deviceId, bool isUdi… in GetTrustedDeviceEntryById()
90 TrustedDeviceEntry **deviceEntry; in GetTrustedDeviceEntryById()
92 TrustedDeviceEntry *returnEntry = DeepCopyDeviceEntry(*deviceEntry); in GetTrustedDeviceEntryById()
131 TrustedDeviceEntry *entry = GetTrustedDeviceEntryById(osAccountId, deviceId, isUdid, groupId); in IsTrustedDeviceInGroup()
256 TrustedDeviceEntry **entry = NULL; in GetRelatedGroups()
289 TrustedDeviceEntry *returnDeviceEntry) in GetTrustedDevInfoById()
295TrustedDeviceEntry *deviceEntry = GetTrustedDeviceEntryById(osAccountId, deviceId, isUdid, groupId… in GetTrustedDevInfoById()
409 static int32_t AddAuthIdToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddAuthIdToReturn()
423 static int32_t AddCredentialTypeToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddCredentialTypeToReturn()
433 static int32_t AddUserTypeToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddUserTypeToReturn()
[all …]
Dgroup_operation.c140 TrustedDeviceEntry **devInfoPtr = NULL; in GenerateReturnDeviceVec()
142 TrustedDeviceEntry *devInfo = (TrustedDeviceEntry*)(*devInfoPtr); in GenerateReturnDeviceVec()
194 TrustedDeviceEntry **entry = NULL; in QueryRelatedGroupsForGetPk()
215 static int32_t GetPkByParams(const char *groupId, const TrustedDeviceEntry *deviceEntry, in GetPkByParams()
259TrustedDeviceEntry *deviceEntry = GetTrustedDeviceEntryById(osAccountId, queryUdid, true, groupId); in GeneratePkInfo()
863 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetAccessibleDeviceInfoById()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Didentical_account_group_test.cpp46 TrustedDeviceEntry trustedDeviceEntry;
102 TrustedDeviceEntry entry;
109 TrustedDeviceEntry entry;
136 TrustedDeviceEntry devParams;
Dacross_account_group_test.cpp65 TrustedDeviceEntry devParams;
109 TrustedDeviceEntry entry;
122 TrustedDeviceEntry entry;
Daccount_related_group_auth_dir_test.cpp286 TrustedDeviceEntry *localAuthInfo = CreateDeviceEntry();
313 TrustedDeviceEntry *localAuthInfo = CreateDeviceEntry();
341 TrustedDeviceEntry *localAuthInfo = CreateDeviceEntry();
371 TrustedDeviceEntry *localAuthInfo = CreateDeviceEntry();
403 TrustedDeviceEntry *localAuthInfo = CreateDeviceEntry();
438 TrustedDeviceEntry *localAuthInfo = CreateDeviceEntry();
Dpeer_to_peer_group_test.cpp83 TrustedDeviceEntry devParams;
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c159 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams()
193 TrustedDeviceEntry *devAuthParams = CreateDeviceEntry(); in GetPeerDevUserTypeFromDb()
249 TrustedDeviceEntry **entryPtr = NULL; in DelAllPeerDevAndKeyInfo()
251 TrustedDeviceEntry *entry = (TrustedDeviceEntry *)(*entryPtr); in DelAllPeerDevAndKeyInfo()
267 TrustedDeviceEntry *deviceInfo = CreateDeviceEntry(); in AddAuthIdAndUserTypeToParams()
368 TrustedDeviceEntry *deviceInfo = CreateDeviceEntry(); in CheckPeerDeviceStatus()
/base/security/device_auth/services/session_manager/inc/session/v2/
Ddev_session_util.h35 TrustedDeviceEntry *GetDeviceEntryById(int32_t osAccountId, const char *deviceId, bool isUdid,
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_util.c26 static TrustedDeviceEntry *GetPeerDeviceEntryByContext(int32_t osAccountId, const CJson *context) in GetPeerDeviceEntryByContext()
55 TrustedDeviceEntry *deviceEntry = GetPeerDeviceEntryByContext(osAccountId, context); in GetPdidByContext()
230 TrustedDeviceEntry *entry = GetDeviceEntryById(osAccountId, peerUdid, true, groupId); in SetPeerAuthIdByDb()
512 TrustedDeviceEntry *GetDeviceEntryById(int32_t osAccountId, const char *deviceId, bool isUdid, in GetDeviceEntryById()
529 TrustedDeviceEntry **deviceEntry; in GetDeviceEntryById()
531 TrustedDeviceEntry *returnEntry = DeepCopyDeviceEntry(*deviceEntry); in GetDeviceEntryById()
/base/security/device_auth/services/creds_manager/src/account_related/
Daccount_related_creds_manager.c81 TrustedDeviceEntry *deviceEntry) in GetSelfDeviceEntryByPeerCert()
277 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetLocalDeviceType()
299 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GenerateAuthTokenForAccessory()
342 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GenerateTokenAliasForController()
402 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetSelfAccountIdentityInfo()
455 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetAccountRelatedCredInfo()
537 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetAccountAsymSharedSecret()
604 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetAccountAsymCredInfo()
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c32 const TrustedDeviceEntry *localAuthInfo, CJson *paramsData);
252 const TrustedDeviceEntry *localAuthInfo, CJson *paramsData) in FillAccountCredentialInfo()
254 TrustedDeviceEntry *peerDevInfo = CreateDeviceEntry(); in FillAccountCredentialInfo()
284 const TrustedDeviceEntry *localAuthInfo, CJson *paramsData) in FillAccountAuthInfo()
316 TrustedDeviceEntry *peerDeviceInfo = CreateDeviceEntry(); in IsDeviceImportedByCloud()
420 TrustedDeviceEntry *localDevInfo = CreateDeviceEntry(); in AddSelfDevInfoForServer()
551 const CJson *authParam, const CJson *out, TrustedDeviceEntry *devEntry) in PrepareTrustedDeviceInfo()
607 TrustedDeviceEntry *devEntry = CreateDeviceEntry(); in AddTrustedDeviceForAccount()
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/
Daccount_unrelated_group_auth.c29 const TrustedDeviceEntry *localAuthInfo, CJson *paramsData);
289 static int32_t AddNonAccountAuthInfo(const TrustedDeviceEntry *localAuthInfo, const TrustedDeviceEn… in AddNonAccountAuthInfo()
323 const TrustedDeviceEntry *localAuthInfo, CJson *paramsData) in FillNonAccountAuthInfo()
327 TrustedDeviceEntry *peerAuthInfo = CreateDeviceEntry(); in FillNonAccountAuthInfo()
/base/security/device_auth/services/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()
212 static int32_t GenerateDelTokenParams(const TrustedDeviceEntry *entry, CJson *delParams) in GenerateDelTokenParams()
229 static int32_t DelDeviceToken(int32_t osAccountId, const TrustedDeviceEntry *entry, bool isLocalDev) in DelDeviceToken()
251 TrustedDeviceEntry **entry = NULL; in DelAllTokens()
268 TrustedDeviceEntry **entry = NULL; in DelAllPeerTokens()
337 …nerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateTrustedDevParams()
403 TrustedDeviceEntry *entry = GetTrustedDeviceEntryById(osAccountId, deviceId, false, groupId); in DelPeerDeviceAndToken()
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/
Dacross_account_group.c114 TrustedDeviceEntry *deviceEntry = deviceEntryVec.get(&deviceEntryVec, 0); in AddCredTypeToParamsFromIdenticalGroup()
126 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams()
282 static int32_t GenerateDelTokenParams(const TrustedDeviceEntry *entry, CJson *delParams) in GenerateDelTokenParams()
299 static int32_t DelPeerDeviceToken(int32_t osAccountId, const TrustedDeviceEntry *entry) in DelPeerDeviceToken()
320 TrustedDeviceEntry **entry = NULL; in DelAllPeerTokens()
372 …nerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateTrustedDevParams()
438 TrustedDeviceEntry *entry = GetTrustedDeviceEntryById(osAccountId, deviceId, false, groupId); in DelPeerDeviceAndToken()
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dsave_trusted_info.c269 static int32_t GeneratePeerDevParams(const CmdParams *params, TrustedDeviceEntry *devParams) in GeneratePeerDevParams()
297 static int32_t GenerateSelfDevParams(const CmdParams *params, TrustedDeviceEntry *devParams) in GenerateSelfDevParams()
343 TrustedDeviceEntry *devParams = CreateDeviceEntry(); in AddPeerTrustedDevice()
367 TrustedDeviceEntry *devParams = CreateDeviceEntry(); in AddSelfTrustedDevice()
394 static TrustedDeviceEntry *GetTrustedDeviceEntryById(int32_t osAccountId, const char *udid, const c… in GetTrustedDeviceEntryById()
406 TrustedDeviceEntry **deviceEntry; in GetTrustedDeviceEntryById()
408 TrustedDeviceEntry *returnEntry = DeepCopyDeviceEntry(*deviceEntry); in GetTrustedDeviceEntryById()
418TrustedDeviceEntry *peerDeviceEntry = GetTrustedDeviceEntryById(params->osAccountId, params->udidP… in IsDeviceImportedByCloud()
/base/security/device_auth/services/creds_manager/src/
Dcreds_manager.c57 static bool IsP2pAuthTokenExist(const TrustedDeviceEntry *deviceEntry) in IsP2pAuthTokenExist()
86 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetAccountUnrelatedIdentityInfo()
230 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in CheckAndGetP2pCredInfo()
316 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GenerateKeyAliasInIso()
435 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GetSelfAuthIdAndUserType()
467 static int32_t ComputeAndSavePsk(int32_t osAccountId, const char *groupId, const TrustedDeviceEntry in ComputeAndSavePsk()
530 TrustedDeviceEntry *deviceEntry = CreateDeviceEntry(); in GeneratePskAliasAndCheckExist()
Dcreds_operation_utils.c145 int32_t GetSelfDeviceEntry(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *deviceEntr… in GetSelfDeviceEntry()
167 TrustedDeviceEntry *returnDeviceEntry) in GetPeerDeviceEntry()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session_common.c142 TrustedDeviceEntry *deviceInfo = CreateDeviceEntry(); in CheckAuthIdAndUserTypeValid()
282 static int32_t AddDevInfoToParams(const TrustedDeviceEntry *devAuthParams, CJson *params) in AddDevInfoToParams()
307 TrustedDeviceEntry *devAuthParams = CreateDeviceEntry(); in AddDevInfoByDatabase()

12