Home
last modified time | relevance | path

Searched refs:peerUdid (Results 1 – 23 of 23) sorted by relevance

/base/security/device_auth/services/group_manager/inc/broadcast_manager/
Dbroadcast_manager.h29 void (*postOnDeviceBound)(const char *peerUdid, const TrustedGroupEntry *groupEntry);
30 void (*postOnDeviceUnBound)(const char *peerUdid, const TrustedGroupEntry *groupEntry);
31 void (*postOnDeviceNotTrusted)(const char *peerUdid);
32 void (*postOnLastGroupDeleted)(const char *peerUdid, int groupType);
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregdatachangelistener_fuzzer/
Ddevauthservregdatachangelistener_fuzzer.cpp27 static void OnDeviceBound(const char *peerUdid, const char *groupInfo) {} in OnDeviceBound() argument
29 static void OnDeviceUnBound(const char *peerUdid, const char *groupInfo) {} in OnDeviceUnBound() argument
31 static void OnDeviceNotTrusted(const char *peerUdid) {} in OnDeviceNotTrusted() argument
33 static void OnLastGroupDeleted(const char *peerUdid, int groupType) {} in OnLastGroupDeleted() argument
/base/security/device_auth/test/fuzztest/group_manage/registerdatachangelistener_fuzzer/
Dregisterdatachangelistener_fuzzer.cpp23 void onDeviceBound(const char *peerUdid, const char *groupInfo) {} in onDeviceBound() argument
25 void onDeviceUnBound(const char *peerUdid, const char *groupInfo) {} in onDeviceUnBound() argument
27 void onDeviceNotTrusted(const char *peerUdid) {} in onDeviceNotTrusted() argument
29 void onLastGroupDeleted(const char *peerUdid, int groupType) {} in onLastGroupDeleted() argument
/base/security/device_auth/services/group_manager/src/broadcast_manager/
Dbroadcast_manager.c104 static void PostOnDeviceBound(const char *peerUdid, const TrustedGroupEntry *groupEntry) in PostOnDeviceBound() argument
106 if ((peerUdid == NULL) || (groupEntry == NULL)) { in PostOnDeviceBound()
120 entry->listener->onDeviceBound(peerUdid, messageStr); in PostOnDeviceBound()
127 static void PostOnDeviceUnBound(const char *peerUdid, const TrustedGroupEntry *groupEntry) in PostOnDeviceUnBound() argument
129 if ((peerUdid == NULL) || (groupEntry == NULL)) { in PostOnDeviceUnBound()
143 entry->listener->onDeviceUnBound(peerUdid, messageStr); in PostOnDeviceUnBound()
150 static void PostOnDeviceNotTrusted(const char *peerUdid) in PostOnDeviceNotTrusted() argument
152 if (peerUdid == NULL) { in PostOnDeviceNotTrusted()
162 entry->listener->onDeviceNotTrusted(peerUdid); in PostOnDeviceNotTrusted()
168 static void PostOnLastGroupDeleted(const char *peerUdid, int groupType) in PostOnLastGroupDeleted() argument
[all …]
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c251 static int32_t FillAccountCredentialInfo(int32_t osAccountId, const char *peerUdid, const char *gro… in FillAccountCredentialInfo() argument
261 int32_t res = GaGetTrustedDeviceEntryById(osAccountId, peerUdid, true, groupId, peerDevInfo); in FillAccountCredentialInfo()
286 const char *peerUdid = GetStringFromJson(paramsData, FIELD_PEER_CONN_DEVICE_ID); in FillAccountAuthInfo() local
287 if (peerUdid == NULL) { in FillAccountAuthInfo()
311 return FillAccountCredentialInfo(osAccountId, peerUdid, groupId, localAuthInfo, paramsData); in FillAccountAuthInfo()
314 static bool IsDeviceImportedByCloud(int32_t osAccountId, const char *peerUdid, const char *groupId) in IsDeviceImportedByCloud() argument
321 …if (GaGetTrustedDeviceEntryById(osAccountId, peerUdid, true, groupId, peerDeviceInfo) != HC_SUCCES… in IsDeviceImportedByCloud()
342 const char *peerUdid = GetStringFromJson(confirmationJson, FIELD_PEER_CONN_DEVICE_ID); in CombineAccountServerConfirms() local
343 if (peerUdid == NULL) { in CombineAccountServerConfirms()
347 if (AddStringToJson(dataFromClient, FIELD_PEER_CONN_DEVICE_ID, peerUdid) != HC_SUCCESS) { in CombineAccountServerConfirms()
[all …]
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/
Daccount_unrelated_group_auth.c90 const char *peerUdid = GetStringFromJson(authParam, FIELD_PEER_CONN_DEVICE_ID); in AddPeerUdidToSelfData() local
91 if (peerUdid == NULL) { in AddPeerUdidToSelfData()
95 if (AddStringToJson(returnToSelf, FIELD_PEER_CONN_DEVICE_ID, peerUdid) != HC_SUCCESS) { in AddPeerUdidToSelfData()
332 const char *peerUdid = GetStringFromJson(paramsData, FIELD_PEER_CONN_DEVICE_ID); in FillNonAccountAuthInfo() local
337 if (peerUdid != NULL) { in FillNonAccountAuthInfo()
338 res = GaGetTrustedDeviceEntryById(osAccountId, peerUdid, true, groupId, peerAuthInfo); in FillNonAccountAuthInfo()
380 const char *peerUdid = GetStringFromJson(confirmationJson, FIELD_PEER_CONN_DEVICE_ID); in CombineDasServerConfirmParams() local
381 if (peerUdid != NULL) { in CombineDasServerConfirmParams()
382 if (AddStringToJson(dataFromClient, FIELD_PEER_CONN_DEVICE_ID, peerUdid) != HC_SUCCESS) { in CombineDasServerConfirmParams()
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth.h177 void (*onDeviceBound)(const char *peerUdid, const char *groupInfo);
179 void (*onDeviceUnBound)(const char *peerUdid, const char *groupInfo);
181 void (*onDeviceNotTrusted)(const char *peerUdid);
183 void (*onLastGroupDeleted)(const char *peerUdid, int groupType);
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session.c182 const char *peerUdid = GetStringFromJson(jsonParams, FIELD_CONN_DEVICE_ID); in CheckServerStatusIfNotInvite() local
183 if (peerUdid == NULL) { in CheckServerStatusIfNotInvite()
197 result = CheckDeviceNumLimit(osAccountId, groupId, peerUdid); in CheckServerStatusIfNotInvite()
437 static int32_t AddPeerDevToGroup(const char *peerAuthId, const char *peerUdid, in AddPeerDevToGroup() argument
442 …int32_t result = AddTrustDevToDatabase(session->osAccountId, peerAuthId, peerUdid, groupId, peerUs… in AddPeerDevToGroup()
451 static int32_t AddGroupAndDev(const char *peerAuthId, const char *peerUdid, const char *groupId, in AddGroupAndDev() argument
458 result = AddPeerDevToGroup(peerAuthId, peerUdid, groupId, session); in AddGroupAndDev()
465 static int32_t HandleBindSuccess(const char *peerAuthId, const char *peerUdid, const char *groupId, in HandleBindSuccess() argument
469 int32_t result = AddGroupAndDev(peerAuthId, peerUdid, groupId, session); in HandleBindSuccess()
487 const char *peerUdid = GetStringFromJson(jsonParams, FIELD_CONN_DEVICE_ID); in OnBindFinish() local
[all …]
Dcompatible_bind_sub_session_common.c358 const char *peerUdid = GetStringFromJson(jsonParams, FIELD_PEER_UDID); in AddPeerAuthIdAndUdidIfExist() local
359 …if (peerUdid != NULL && AddStringToJson(session->params, FIELD_PEER_UDID, peerUdid) != HC_SUCCESS)… in AddPeerAuthIdAndUdidIfExist()
/base/security/device_auth/services/group_auth/inc/
Dgroup_auth_data_operation.h28 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *pe…
/base/security/device_auth/services/mk_agree/inc/
Dmk_agree_task.h51 char *peerUdid; member
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c209 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *pe… in GaIsDeviceInGroup() argument
223 if (peerUdid != NULL) { in GaIsDeviceInGroup()
224 res = GaGetTrustedDeviceEntryById(osAccountId, peerUdid, true, groupId, deviceEntry); in GaIsDeviceInGroup()
/base/security/device_auth/frameworks/src/lite/
Dipc_adapt.c1050 void IpcOnDeviceBound(const char *peerUdid, const char *groupInfo) in IpcOnDeviceBound() argument
1057 if ((peerUdid == NULL) || (groupInfo == NULL)) { in IpcOnDeviceBound()
1074 …ret = EncodeCallData(dataParcel, PARAM_TYPE_UDID, (const uint8_t *)(peerUdid), strlen(peerUdid) + … in IpcOnDeviceBound()
1098 void IpcOnDeviceUnBound(const char *peerUdid, const char *groupInfo) in IpcOnDeviceUnBound() argument
1105 if ((peerUdid == NULL) || (groupInfo == NULL)) { in IpcOnDeviceUnBound()
1122 …ret = EncodeCallData(dataParcel, PARAM_TYPE_UDID, (const uint8_t *)(peerUdid), strlen(peerUdid) + … in IpcOnDeviceUnBound()
1146 void IpcOnDeviceNotTrusted(const char *peerUdid) in IpcOnDeviceNotTrusted() argument
1153 if (peerUdid == NULL) { in IpcOnDeviceNotTrusted()
1170 …ret = EncodeCallData(dataParcel, PARAM_TYPE_UDID, (const uint8_t *)(peerUdid), strlen(peerUdid) + … in IpcOnDeviceNotTrusted()
1193 void IpcOnLastGroupDeleted(const char *peerUdid, int32_t groupType) in IpcOnLastGroupDeleted() argument
[all …]
/base/security/device_auth/frameworks/src/standard/
Dipc_adapt.cpp1000 void IpcOnDeviceBound(const char *peerUdid, const char *groupInfo) in IpcOnDeviceBound() argument
1014 if ((peerUdid == nullptr) || (groupInfo == nullptr)) { in IpcOnDeviceBound()
1020 reinterpret_cast<const uint8_t *>(peerUdid), strlen(peerUdid) + 1); in IpcOnDeviceBound()
1041 void IpcOnDeviceUnBound(const char *peerUdid, const char *groupInfo) in IpcOnDeviceUnBound() argument
1055 if ((peerUdid == nullptr) || (groupInfo == nullptr)) { in IpcOnDeviceUnBound()
1061 reinterpret_cast<const uint8_t *>(peerUdid), strlen(peerUdid) + 1); in IpcOnDeviceUnBound()
1082 void IpcOnDeviceNotTrusted(const char *peerUdid) in IpcOnDeviceNotTrusted() argument
1096 if (peerUdid == nullptr) { in IpcOnDeviceNotTrusted()
1102 reinterpret_cast<const uint8_t *>(peerUdid), strlen(peerUdid) + 1); in IpcOnDeviceNotTrusted()
1121 void IpcOnLastGroupDeleted(const char *peerUdid, int32_t groupType) in IpcOnLastGroupDeleted() argument
[all …]
/base/security/device_auth/services/mk_agree/src/
Dmk_agree_task.c160 res = GenerateAndSavePseudonymId(pakeTask->taskBase.osAccountId, pakeTask->taskBase.peerUdid, in ComputeKcfData()
308 res = GenerateMk(pakeTask->taskBase.peerUdid, &peerPkBuff); in GenerateMkByPeer()
322 res = GeneratePseudonymPsk(pakeTask->taskBase.peerUdid, &saltBuff); in GenerateMkByPeer()
560 int32_t res = GetDuplicateUdid(in, &task->peerUdid); in ProcessPakeMkAgreeTask()
592 HcFree(task->peerUdid); in DestroyPakeMkAgreeTask()
593 task->peerUdid = NULL; in DestroyPakeMkAgreeTask()
/base/security/device_auth/services/
Ddevice_auth.c673 const char *peerUdid = GetPeerUdidFromJson(osAccountId, context); in BuildClientAuthContext() local
674 if (peerUdid != NULL) { in BuildClientAuthContext()
676 if (DeepCopyString(peerUdid, &deviceId) != HC_SUCCESS) { in BuildClientAuthContext()
757 static int32_t AddDeviceIdToJson(CJson *context, const char *peerUdid) in AddDeviceIdToJson() argument
760 if (DeepCopyString(peerUdid, &deviceId) != HC_SUCCESS) { in AddDeviceIdToJson()
786 const char *peerUdid = GetPeerUdidFromJson(osAccountId, context); in BuildServerAuthContext() local
787 if (peerUdid == NULL) { in BuildServerAuthContext()
791 PRINT_SENSITIVE_DATA("PeerUdid", peerUdid); in BuildServerAuthContext()
792 if (AddDeviceIdToJson(context, peerUdid) != HC_SUCCESS) { in BuildServerAuthContext()
/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h42 int32_t AssertPeerDeviceNotSelf(const char *peerUdid);
45 int32_t CheckDeviceNumLimit(int32_t osAccountId, const char *groupId, const char *peerUdid);
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_util.c225 const char *peerUdid = GetStringFromJson(context, FIELD_PEER_UDID); in SetPeerAuthIdByDb() local
226 if (peerUdid == NULL) { in SetPeerAuthIdByDb()
230 TrustedDeviceEntry *entry = GetDeviceEntryById(osAccountId, peerUdid, true, groupId); in SetPeerAuthIdByDb()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c537 int32_t CheckDeviceNumLimit(int32_t osAccountId, const char *groupId, const char *peerUdid) in CheckDeviceNumLimit() argument
544 if ((peerUdid != NULL) && (IsTrustedDeviceInGroup(osAccountId, groupId, peerUdid, true))) { in CheckDeviceNumLimit()
845 int32_t AssertPeerDeviceNotSelf(const char *peerUdid) in AssertPeerDeviceNotSelf() argument
847 if (peerUdid == NULL) { in AssertPeerDeviceNotSelf()
857 if (strcmp(peerUdid, udid) == 0) { in AssertPeerDeviceNotSelf()
/base/security/device_auth/frameworks/src/
Dipc_service.c715 const char *peerUdid = NULL; in IpcServiceGmGetRelatedGroups() local
731 … ret = GetIpcRequestParamByType(ipcParams, paramNum, PARAM_TYPE_UDID, (uint8_t *)&peerUdid, NULL); in IpcServiceGmGetRelatedGroups()
732 if ((peerUdid == NULL) || (ret != HC_SUCCESS)) { in IpcServiceGmGetRelatedGroups()
737 …callRet = g_devGroupMgrMethod.getRelatedGroups(osAccountId, appId, peerUdid, &outGroups, &groupNum… in IpcServiceGmGetRelatedGroups()
759 const char *peerUdid = NULL; in IpcServiceGmGetDeviceInfoById() local
775 … ret = GetIpcRequestParamByType(ipcParams, paramNum, PARAM_TYPE_UDID, (uint8_t *)&peerUdid, NULL); in IpcServiceGmGetDeviceInfoById()
776 if ((peerUdid == NULL) || (ret != HC_SUCCESS)) { in IpcServiceGmGetDeviceInfoById()
786 …callRet = g_devGroupMgrMethod.getDeviceInfoById(osAccountId, appId, peerUdid, groupId, &outDevInfo… in IpcServiceGmGetDeviceInfoById()
Dipc_sdk.c1093 static int32_t IpcGmGetRelatedGroups(int32_t osAccountId, const char *appId, const char *peerUdid, in IpcGmGetRelatedGroups() argument
1101 …if (IsStrInvalid(appId) || IsStrInvalid(peerUdid) || (outGroupVec == NULL) || (groupNum == NULL)) { in IpcGmGetRelatedGroups()
1122 …SetCallRequestParamInfo(callCtx, PARAM_TYPE_UDID, (const uint8_t *)peerUdid, strlen(peerUdid) + 1); in IpcGmGetRelatedGroups()
1169 const char *peerUdid, const char *groupId, uintptr_t callCtx) in FormParamsForGettingDeviceInfo() argument
1183 …SetCallRequestParamInfo(callCtx, PARAM_TYPE_UDID, (const uint8_t *)peerUdid, strlen(peerUdid) + 1); in FormParamsForGettingDeviceInfo()
1196 static int32_t IpcGmGetDeviceInfoById(int32_t osAccountId, const char *appId, const char *peerUdid,… in IpcGmGetDeviceInfoById() argument
1205 …if (IsStrInvalid(appId) || IsStrInvalid(peerUdid) || IsStrInvalid(groupId) || (outDevInfo == NULL)… in IpcGmGetDeviceInfoById()
1214 ret = FormParamsForGettingDeviceInfo(osAccountId, appId, peerUdid, groupId, callCtx); in IpcGmGetDeviceInfoById()
/base/security/device_auth/test/unittest/deviceauth/source/
Ddevice_auth_ipc_test.cpp193 static void OnDeviceBound(const char *peerUdid, const char *groupInfo) in OnDeviceBound() argument
195 (void)peerUdid; in OnDeviceBound()
200 static void OnDeviceUnBound(const char *peerUdid, const char *groupInfo) in OnDeviceUnBound() argument
202 (void)peerUdid; in OnDeviceUnBound()
207 static void OnDeviceNotTrusted(const char *peerUdid) in OnDeviceNotTrusted() argument
209 (void)peerUdid; in OnDeviceNotTrusted()
213 static void OnLastGroupDeleted(const char *peerUdid, int groupType) in OnLastGroupDeleted() argument
215 (void)peerUdid; in OnLastGroupDeleted()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_common.c160 const char *peerUdid = GetStringFromJson(param, FIELD_PEER_CONN_DEVICE_ID); in FillAuthParams() local
176 if (!GaIsDeviceInGroup(groupInfo->type, osAccountId, peerUdid, peerAuthId, groupId)) { in FillAuthParams()