Home
last modified time | relevance | path

Searched refs:peerUserId (Results 1 - 6 of 6) sorted by relevance

/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
H A Daccount_related_group_auth.c122 const char *peerUserId = GetStringFromJson(sendToSelf, FIELD_USER_ID); in GetUserIdForAccount() local
123 if (peerUserId == NULL) { in GetUserIdForAccount()
127 if (AddStringToJson(returnToSelf, FIELD_USER_ID, peerUserId) != HC_SUCCESS) { in GetUserIdForAccount()
168 static bool IsPeerInAccountRelatedGroup(const TrustedGroupEntry *groupEntry, const char *peerUserId, GroupType type) in IsPeerInAccountRelatedGroup() argument
176 if (IsUserIdEqual(userIdInDb, peerUserId)) { in IsPeerInAccountRelatedGroup()
183 static bool IsPeerInIdenticalGroup(int32_t osAccountId, const char *peerUserId) in IsPeerInIdenticalGroup() argument
202 if (IsPeerInAccountRelatedGroup(*ptr, peerUserId, IDENTICAL_ACCOUNT_GROUP)) { in IsPeerInIdenticalGroup()
213 static void GaGetAccountGroup(int32_t osAccountId, GroupType type, const char *peerUserId, in GaGetAccountGroup() argument
231 if ((peerUserId == NULL) || IsPeerInAccountRelatedGroup(*ptr, peerUserId, typ in GaGetAccountGroup()
252 const char *peerUserId = GetStringFromJson(param, FIELD_USER_ID); GetAccountCandidateGroup() local
372 const char *peerUserId = GetStringFromJson(data, FIELD_USER_ID); QueryAuthGroupForServer() local
440 GetPeerUserIdFromReceivedData(const CJson *data, char **peerUserId) GetPeerUserIdFromReceivedData() argument
486 char *peerUserId = NULL; QueryGroupForAccountPlugin() local
737 const char *peerUserId = GetStringFromJson(sendToSelf, FIELD_USER_ID); PrepareTrustedDeviceInfo() local
[all...]
/base/security/device_auth/services/identity_manager/src/mock/
H A Dcert_operation_mock.c30 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, in GetAccountAsymSharedSecret() argument
34 (void)peerUserId; in GetAccountAsymSharedSecret()
/base/security/device_auth/services/identity_manager/inc/
H A Dcert_operation.h28 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo,
/base/security/device_auth/services/identity_manager/src/
H A Dcert_operation.c195 const char *peerUserId = GetStringFromJson(peerPkInfoJson, FIELD_USER_ID); in GetSelfGroupEntryByPeerCert() local
196 if (peerUserId == NULL) { in GetSelfGroupEntryByPeerCert()
207 if (AddStringToJson(param, FIELD_USER_ID, peerUserId) != HC_SUCCESS) { in GetSelfGroupEntryByPeerCert()
636 const char *peerUserId = StringGet(&deviceEntry->userId); in GetAccountRelatedCredInfo() local
637 isNeedGeneratePdid = GetPseudonymInstance()->isNeedRefreshPseudonymId(osAccountId, peerUserId); in GetAccountRelatedCredInfo()
656 int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCertFromPlugin()
670 if ((peerUserId != NULL) && (AddStringToJson(input, FIELD_PEER_USER_ID, peerUserId) != HC_SUCCESS)) { in GetSharedSecretByPeerCertFromPlugin()
700 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, in GetAccountAsymSharedSecret() argument
708 return GetSharedSecretByPeerCertFromPlugin(osAccountId, peerUserId, peerCertInf in GetAccountAsymSharedSecret()
655 GetSharedSecretByPeerCertFromPlugin( int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) GetSharedSecretByPeerCertFromPlugin() argument
[all...]
H A Didentity_group.c924 const char *peerUserId = GetStringFromJson(in, FIELD_PEER_USER_ID); in GetSharedSecretByPeerCert() local
925 if (peerUserId != NULL) { in GetSharedSecretByPeerCert()
926 LOGE("peerUserId exists."); in GetSharedSecretByPeerCert()
928 return GetAccountAsymSharedSecret(osAccountId, peerUserId, peerCertInfo, sharedSecret); in GetSharedSecretByPeerCert()
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c1198 static bool IsPeerSameUserId(int32_t osAccountId, const char *peerUserId) in IsPeerSameUserId() argument
1209 bool isSame = (strcmp(StringGet(&(groupEntry->userId)), peerUserId) == 0); in IsPeerSameUserId()
1214 static int32_t AddAcrossAccountAuthInfoToContext(SessionImpl *impl, int32_t osAccountId, const char *peerUserId) in AddAcrossAccountAuthInfoToContext() argument
1219 queryParams.sharedUserId = peerUserId; in AddAcrossAccountAuthInfoToContext()
1221 LOGE("get across account group from db by peerUserId fail."); in AddAcrossAccountAuthInfoToContext()
1247 static int32_t AddIdenticalAccountAuthInfoToContext(SessionImpl *impl, int32_t osAccountId, const char *peerUserId) in AddIdenticalAccountAuthInfoToContext() argument
1252 queryParams.userId = peerUserId; in AddIdenticalAccountAuthInfoToContext()
1254 LOGE("get identical account group from db by peerUserId fail."); in AddIdenticalAccountAuthInfoToContext()
1281 const char *peerUserId = GetStringFromJson(impl->context, FIELD_USER_ID); in AddAuthInfoToContextByCert() local
1282 if (peerUserId ! in AddAuthInfoToContextByCert()
[all...]

Completed in 8 milliseconds