Home
last modified time | relevance | path

Searched refs:peerAuthId (Results 1 – 12 of 12) sorted by relevance

/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/
Daccount_unrelated_group_auth.c104 const char *peerAuthId = GetStringFromJson(authParam, FIELD_PEER_AUTH_ID); in AddPeerAuthIdToSelfData() local
105 if (peerAuthId == NULL) { in AddPeerAuthIdToSelfData()
110 if (AddStringToJson(returnToSelf, FIELD_PEER_AUTH_ID, peerAuthId) != HC_SUCCESS) { in AddPeerAuthIdToSelfData()
307 const char *peerAuthId = GetStringFromJson(paramsData, FIELD_PEER_ID_FROM_REQUEST); in AddNonAccountAuthInfo() local
308 if (peerAuthId == NULL) { in AddNonAccountAuthInfo()
309 peerAuthId = StringGet(&peerAuthInfo->authId); in AddNonAccountAuthInfo()
311 if (AddStringToJson(paramsData, FIELD_PEER_AUTH_ID, peerAuthId) != HC_SUCCESS) { in AddNonAccountAuthInfo()
333 const char *peerAuthId = GetStringFromJson(paramsData, FIELD_PEER_ID_FROM_REQUEST); in FillNonAccountAuthInfo() local
334 if (peerAuthId == NULL) { in FillNonAccountAuthInfo()
335 peerAuthId = GetStringFromJson(paramsData, FIELD_PEER_AUTH_ID); in FillNonAccountAuthInfo()
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c190 … int32_t GetPeerDevUserTypeFromDb(int32_t osAccountId, const char *groupId, const char *peerAuthId) in GetPeerDevUserTypeFromDb() argument
198 … if (GetTrustedDevInfoById(osAccountId, peerAuthId, false, groupId, devAuthParams) != HC_SUCCESS) { in GetPeerDevUserTypeFromDb()
208 …atic int32_t DelPeerDevAndKeyInfo(int32_t osAccountId, const char *groupId, const char *peerAuthId) in DelPeerDevAndKeyInfo() argument
210 int32_t peerUserType = GetPeerDevUserTypeFromDb(osAccountId, groupId, peerAuthId); in DelPeerDevAndKeyInfo()
213 queryDeviceParams.authId = peerAuthId; in DelPeerDevAndKeyInfo()
222 .val = (uint8_t *)peerAuthId, in DelPeerDevAndKeyInfo()
223 .length = HcStrlen(peerAuthId) in DelPeerDevAndKeyInfo()
326 const char *peerAuthId = GetStringFromJson(jsonParams, FIELD_DELETE_ID); in HandleLocalUnbind() local
327 if (peerAuthId == NULL) { in HandleLocalUnbind()
341 int result = DelPeerDevAndKeyInfo(osAccountId, groupId, peerAuthId); in HandleLocalUnbind()
[all …]
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session.c260 static int32_t InformSelfBindSuccess(const char *peerAuthId, const char *groupId, in InformSelfBindSuccess() argument
271 int32_t result = GenerateBindSuccessData(peerAuthId, groupId, &jsonDataStr); in InformSelfBindSuccess()
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()
474 return InformSelfBindSuccess(peerAuthId, groupId, session, out); in HandleBindSuccess()
479 const char *peerAuthId = GetStringFromJson(jsonParams, FIELD_PEER_DEVICE_ID); in OnBindFinish() local
[all …]
Dcompatible_bind_sub_session_common.c353 const char *peerAuthId = GetStringFromJson(jsonParams, FIELD_PEER_DEVICE_ID); in AddPeerAuthIdAndUdidIfExist() local
354 …if (peerAuthId != NULL && AddStringToJson(session->params, FIELD_PEER_AUTH_ID, peerAuthId) != HC_S… in AddPeerAuthIdAndUdidIfExist()
/base/security/device_auth/services/group_auth/inc/
Dgroup_auth_data_operation.h28 …DeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *peerAuthId,
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c985 int32_t GenerateBindSuccessData(const char *peerAuthId, const char *groupId, char **returnDataStr) in GenerateBindSuccessData() argument
987 if ((peerAuthId == NULL) || (groupId == NULL) || (returnDataStr == NULL)) { in GenerateBindSuccessData()
993 if (HcStrlen(peerAuthId) >= DESENSITIZATION_LEN) { in GenerateBindSuccessData()
994 …LOGI("Bind successfully! [PeerAuthId]: %c%c%c%c****", peerAuthId[DEV_AUTH_ZERO], peerAuthId[DEV_AU… in GenerateBindSuccessData()
995 peerAuthId[DEV_AUTH_TWO], peerAuthId[DEV_AUTH_THREE]); in GenerateBindSuccessData()
1009 if (AddStringToJson(jsonData, FIELD_ADD_ID, peerAuthId) != HC_SUCCESS) { in GenerateBindSuccessData()
1024 int32_t GenerateUnbindSuccessData(const char *peerAuthId, const char *groupId, char **returnDataStr) in GenerateUnbindSuccessData() argument
1026 if ((peerAuthId == NULL) || (groupId == NULL) || (returnDataStr == NULL)) { in GenerateUnbindSuccessData()
1032 if (HcStrlen(peerAuthId) >= DESENSITIZATION_LEN) { in GenerateUnbindSuccessData()
1033 …LOGI("Unbind successfully! [PeerAuthId]: %c%c%c%c****", peerAuthId[DEV_AUTH_ZERO], peerAuthId[DEV_… in GenerateUnbindSuccessData()
[all …]
/base/security/device_auth/services/creds_manager/src/
Dcreds_manager.c64 const char *peerAuthId = StringGet(&deviceEntry->authId); in IsP2pAuthTokenExist() local
65 Uint8Buff peerAuthIdBuff = { (uint8_t *)peerAuthId, strlen(peerAuthId) }; in IsP2pAuthTokenExist()
330 const char *peerAuthId = StringGet(&deviceEntry->authId); in GenerateKeyAliasInIso() local
331 Uint8Buff peerAuthIdBuff = { (uint8_t *)peerAuthId, (uint32_t)strlen(peerAuthId) }; in GenerateKeyAliasInIso()
496 const char *peerAuthId = StringGet(&peerDeviceEntry->authId); in ComputeAndSavePsk() local
497 Uint8Buff peerAuthIdBuff = { (uint8_t *)peerAuthId, strlen(peerAuthId) }; in ComputeAndSavePsk()
544 const char *peerAuthId = StringGet(&deviceEntry->authId); in GeneratePskAliasAndCheckExist() local
545 Uint8Buff peerAuthIdBuff = { (uint8_t *)peerAuthId, strlen(peerAuthId) }; in GeneratePskAliasAndCheckExist()
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_util.c235 const char *peerAuthId = StringGet(&entry->authId); in SetPeerAuthIdByDb() local
236 if (AddStringToJson(context, FIELD_PEER_AUTH_ID, peerAuthId) != HC_SUCCESS) { in SetPeerAuthIdByDb()
247 const char *peerAuthId = GetStringFromJson(context, FIELD_PEER_AUTH_ID); in FillPeerAuthIdIfNeeded() local
248 if (peerAuthId == NULL) { in FillPeerAuthIdIfNeeded()
257 Uint8Buff authIdBuff = { (uint8_t *)peerAuthId, HcStrlen(peerAuthId) + 1 }; in FillPeerAuthIdIfNeeded()
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c209 …DeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *peerAuthId, in GaIsDeviceInGroup() argument
225 } else if (peerAuthId != NULL) { in GaIsDeviceInGroup()
226 res = GaGetTrustedDeviceEntryById(osAccountId, peerAuthId, false, groupId, deviceEntry); in GaIsDeviceInGroup()
/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h78 int32_t GenerateBindSuccessData(const char *peerAuthId, const char *groupId, char **returnDataStr);
79 int32_t GenerateUnbindSuccessData(const char *peerAuthId, const char *groupId, char **returnDataStr…
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_common.c161 const char *peerAuthId = GetStringFromJson(param, FIELD_PEER_ID_FROM_REQUEST); in FillAuthParams() local
162 if (peerAuthId == NULL) { in FillAuthParams()
163 peerAuthId = GetStringFromJson(param, FIELD_PEER_AUTH_ID); in FillAuthParams()
176 if (!GaIsDeviceInGroup(groupInfo->type, osAccountId, peerUdid, peerAuthId, groupId)) { in FillAuthParams()
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c565 const char *peerAuthId = GetStringFromJson(sendToSelf, FIELD_DEV_ID); in PrepareTrustedDeviceInfo() local
566 if (peerAuthId == NULL) { in PrepareTrustedDeviceInfo()
577 !StringSetPointer(&(devEntry->authId), peerAuthId) || in PrepareTrustedDeviceInfo()