/base/security/device_auth/services/group_manager/src/ |
D | group_manager.c | 24 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… in CreateGroupImpl() argument 28 …return IsGroupSupport() ? GetGroupImplInstance()->createGroup(osAccountId, requestId, appId, creat… in CreateGroupImpl() 32 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… in DeleteGroupImpl() argument 36 …return IsGroupSupport() ? GetGroupImplInstance()->deleteGroup(osAccountId, requestId, appId, disba… in DeleteGroupImpl() 40 int32_t DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const … in DeleteMemberFromGroupImpl() argument 44 …return IsGroupSupport() ? GetGroupImplInstance()->deleteMember(osAccountId, requestId, appId, dele… in DeleteMemberFromGroupImpl() 48 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams) in AddMultiMembersToGroupImpl() argument 51 return IsGroupSupport() ? GetGroupImplInstance()->addMultiMembers(osAccountId, appId, addParams) in AddMultiMembersToGroupImpl() 55 int32_t DelMultiMembersFromGroupImpl(int32_t osAccountId, const char *appId, const char *deletePara… in DelMultiMembersFromGroupImpl() argument 58 …return IsGroupSupport() ? GetGroupImplInstance()->delMultiMembers(osAccountId, appId, deleteParams) in DelMultiMembersFromGroupImpl() [all …]
|
/base/security/device_auth/services/group_manager/inc/ |
D | group_manager.h | 29 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 30 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… 31 int32_t DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const … 32 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams); 33 int32_t DelMultiMembersFromGroupImpl(int32_t osAccountId, const char *appId, const char *deletePara… 39 int32_t CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId); 40 int32_t GetGroupInfoByIdImpl(int32_t osAccountId, const char *appId, const char *groupId, char **re… 41 int32_t GetGroupInfoImpl(int32_t osAccountId, const char *appId, const char *queryParams, 43 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType, 45 int32_t GetRelatedGroupsImpl(int32_t osAccountId, const char *appId, const char *peerDeviceId, [all …]
|
D | group_operation.h | 27 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 28 …int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… 29 …int32_t (*deleteMember)(int32_t osAccountId, int64_t requestId, const char *appId, const char *del… 30 int32_t (*addMultiMembers)(int32_t osAccountId, const char *appId, const char *addParams); 31 int32_t (*delMultiMembers)(int32_t osAccountId, const char *appId, const char *deleteParams); 35 int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId); 36 … int32_t (*getAccessibleGroupInfoById)(int32_t osAccountId, const char *appId, const char *groupId, 38 … int32_t (*getAccessibleGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams, 40 int32_t (*getAccessibleJoinedGroups)(int32_t osAccountId, const char *appId, int groupType, 42 …int32_t (*getAccessibleRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDevi… [all …]
|
D | group_operation_common.h | 41 int32_t AssertSameGroupNotExist(int32_t osAccountId, const char *groupId); 43 int32_t CheckGroupExist(int32_t osAccountId, const char *groupId); 44 int32_t CheckGroupNumLimit(int32_t osAccountId, int32_t groupType, const char *appId); 45 int32_t CheckDeviceNumLimit(int32_t osAccountId, const char *groupId, const char *peerUdid); 49 int32_t CheckPermForGroup(int32_t osAccountId, int actionType, const char *callerPkgName, const cha… 71 int32_t AddGroupToDatabaseByJson(int32_t osAccountId, int32_t (*generateGroupParams)(const CJson*, 73 int32_t AddDeviceToDatabaseByJson(int32_t osAccountId, int32_t (*generateDevParams)(const CJson*, c… 75 int32_t DelGroupFromDb(int32_t osAccountId, const char *groupId); 81 int32_t GetCurDeviceNumByGroupId(int32_t osAccountId, const char *groupId); 82 int32_t GetGroupTypeFromDb(int32_t osAccountId, const char *groupId, int32_t *returnGroupType); [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/ |
D | group_operation.c | 50 static void RemoveNoPermissionGroup(int32_t osAccountId, GroupEntryVec *groupEntryVec, const char *… in RemoveNoPermissionGroup() argument 56 … if (CheckGroupAccessible(osAccountId, StringGet(&(*groupEntryPtr)->id), appId) == HC_SUCCESS) { in RemoveNoPermissionGroup() 182 static int32_t QueryRelatedGroupsForGetPk(int32_t osAccountId, const char *udid, GroupEntryVec *ret… in QueryRelatedGroupsForGetPk() argument 187 int32_t result = QueryDevices(osAccountId, ¶ms, &deviceEntryVec); in QueryRelatedGroupsForGetPk() 197 … TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in QueryRelatedGroupsForGetPk() 257 static int32_t GeneratePkInfo(int32_t osAccountId, const char *queryUdid, const char *groupId, CJso… in GeneratePkInfo() argument 259 …TrustedDeviceEntry *deviceEntry = GetTrustedDeviceEntryById(osAccountId, queryUdid, true, groupId); in GeneratePkInfo() 281 static void AddAllPkInfoToList(int32_t osAccountId, const char *queryUdid, const GroupEntryVec *gro… in AddAllPkInfoToList() argument 297 int32_t res = GeneratePkInfo(osAccountId, queryUdid, groupId, pkInfo); in AddAllPkInfoToList() 325 static int32_t GeneratePkInfoList(int32_t osAccountId, const CJson *params, CJson *pkInfoList) in GeneratePkInfoList() argument [all …]
|
D | group_operation_common.c | 52 static int32_t GetGroupNumByOwner(int32_t osAccountId, const char *ownerName) in GetGroupNumByOwner() argument 62 int32_t result = QueryGroups(osAccountId, &queryParams, &groupEntryVec); in GetGroupNumByOwner() 73 TrustedDeviceEntry *GetTrustedDeviceEntryById(int32_t osAccountId, const char *deviceId, bool isUdi… in GetTrustedDeviceEntryById() argument 84 if (QueryDevices(osAccountId, ¶ms, &deviceEntryVec) != HC_SUCCESS) { in GetTrustedDeviceEntryById() 100 TrustedGroupEntry *GetGroupEntryById(int32_t osAccountId, const char *groupId) in GetGroupEntryById() argument 111 if (QueryGroups(osAccountId, ¶ms, &groupEntryVec) != HC_SUCCESS) { in GetGroupEntryById() 125 bool IsTrustedDeviceInGroup(int32_t osAccountId, const char *groupId, const char *deviceId, bool is… in IsTrustedDeviceInGroup() argument 131 TrustedDeviceEntry *entry = GetTrustedDeviceEntryById(osAccountId, deviceId, isUdid, groupId); in IsTrustedDeviceInGroup() 139 int32_t CheckGroupNumLimit(int32_t osAccountId, int32_t groupType, const char *appId) in CheckGroupNumLimit() argument 143 if (GetGroupNumByOwner(osAccountId, appId) >= HC_TRUST_GROUP_ENTRY_MAX_NUM) { in CheckGroupNumLimit() [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/ |
D | identical_account_group.c | 114 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() argument 127 … ((result = CheckGroupNumLimit(osAccountId, IDENTICAL_ACCOUNT_GROUP, appId)) != HC_SUCCESS)) { in CheckCreateParams() 133 static int32_t DelDeviceById(int32_t osAccountId, const char *groupId, const char *deviceId, bool i… in DelDeviceById() argument 142 return DelTrustedDevice(osAccountId, &queryDeviceParams); in DelDeviceById() 145 static int32_t ImportSelfToken(int32_t osAccountId, CJson *jsonParams) in ImportSelfToken() argument 176 return ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, IMPORT_SELF_CREDENTIAL, credJson, NULL); in ImportSelfToken() 179 static int32_t DelSelfToken(int32_t osAccountId, CJson *jsonParams) in DelSelfToken() argument 186 return ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, DELETE_SELF_CREDENTIAL, credJson, NULL); in DelSelfToken() 229 static int32_t DelDeviceToken(int32_t osAccountId, const TrustedDeviceEntry *entry, bool isLocalDev) in DelDeviceToken() argument 241 res = ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, in DelDeviceToken() [all …]
|
/base/security/device_auth/services/privacy_enhancement/inc/ |
D | pseudonym_manager.h | 25 int32_t (*getRealInfo)(int32_t osAccountId, const char *pseudonymId, char **realInfo); 26 int32_t (*getPseudonymId)(int32_t osAccountId, const char *indexKey, char **pseudonymId); 27 int32_t (*savePseudonymId)(int32_t osAccountId, const char *pseudonymId, const char *realInfo, 29 int32_t (*deleteAllPseudonymId)(int32_t osAccountId, const char *deviceId); 30 int32_t (*deletePseudonymId)(int32_t osAccountId, const char *indexKey); 31 bool (*isNeedRefreshPseudonymId)(int32_t osAccountId, const char *indexKey);
|
/base/security/device_auth/interfaces/inner_api/ |
D | device_auth.h | 211 int32_t (*authDevice)(int32_t osAccountId, int64_t authReqId, const char *authParams, 216 int32_t (*getRealInfo)(int32_t osAccountId, const char *pseudonymId, char **realInfo); 218 int32_t (*getPseudonymId)(int32_t osAccountId, const char *indexKey, char **pseudonymId); 231 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 233 …int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… 235 …int32_t (*addMemberToGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char … 237 int32_t (*deleteMemberFromGroup)(int32_t osAccountId, int64_t requestId, const char *appId, 242 … int32_t (*addMultiMembersToGroup)(int32_t osAccountId, const char *appId, const char *addParams); 244 …int32_t (*delMultiMembersFromGroup)(int32_t osAccountId, const char *appId, const char *deletePara… 248 int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId); [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 30 static bool IsSameNameGroupExist(int32_t osAccountId, const char *ownerName, const char *groupName) in IsSameNameGroupExist() argument 40 int32_t result = QueryGroups(osAccountId, &queryParams, &groupEntryVec); in IsSameNameGroupExist() 53 static int32_t CheckGroupName(int32_t osAccountId, const char *appId, const CJson *jsonParams) in CheckGroupName() argument 61 if (IsSameNameGroupExist(osAccountId, appId, groupName)) { in CheckGroupName() 117 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() argument 125 if (((result = CheckGroupName(osAccountId, appId, jsonParams)) != HC_SUCCESS) || in CheckCreateParams() 129 ((result = CheckGroupNumLimit(osAccountId, PEER_TO_PEER_GROUP, appId)) != HC_SUCCESS)) { in CheckCreateParams() 173 static int32_t CreateGroupInner(int32_t osAccountId, const CJson *jsonParams, char **returnGroupId) in CreateGroupInner() argument 177 if (((result = CheckCreateParams(osAccountId, jsonParams)) != HC_SUCCESS) || in CreateGroupInner() 180 …((result = AddGroupToDatabaseByJson(osAccountId, GenerateGroupParams, jsonParams, groupId)) != HC_… in CreateGroupInner() [all …]
|
/base/security/device_auth/services/privacy_enhancement/src/ |
D | pseudonym_manager.c | 43 int32_t osAccountId; member 181 static bool GetPseudonymPath(int32_t osAccountId, char *Path, uint32_t pathBufferLen) in GetPseudonymPath() argument 189 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetPseudonymPath() 192 … writeByteNum = sprintf_s(Path, pathBufferLen, "%s/pseudonym_data%d.dat", beginPath, osAccountId); in GetPseudonymPath() 201 static int32_t OpenPseudonymFile(int32_t osAccountId, FileHandle *file, int32_t mode) in OpenPseudonymFile() argument 208 if (!GetPseudonymPath(osAccountId, pseudonymPath, MAX_DB_PATH_LEN)) { in OpenPseudonymFile() 218 static int32_t LoadPseudonymDataFromFile(int32_t osAccountId, PseudonymInfoVec *vec) in LoadPseudonymDataFromFile() argument 225 int32_t ret = OpenPseudonymFile(osAccountId, &file, MODE_FILE_READ); in LoadPseudonymDataFromFile() 278 static OsAccountPseudonymInfo *GetPseudonymInfoByOsAccountId(int32_t osAccountId) in GetPseudonymInfoByOsAccountId() argument 283 if (info->osAccountId == osAccountId) { in GetPseudonymInfoByOsAccountId() [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/ |
D | across_account_group.c | 89 static int32_t AddCredTypeToParamsFromIdenticalGroup(int32_t osAccountId, CJson *jsonParams) in AddCredTypeToParamsFromIdenticalGroup() argument 107 if ((QueryDevices(osAccountId, ¶ms, &deviceEntryVec) != HC_SUCCESS) || in AddCredTypeToParamsFromIdenticalGroup() 186 static int32_t AssertIdenticalGroupExist(int32_t osAccountId, const CJson *jsonParams) in AssertIdenticalGroupExist() argument 196 result = QueryGroups(osAccountId, ¶ms, &groupEntryVec); in AssertIdenticalGroupExist() 240 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() argument 253 ((result = AssertIdenticalGroupExist(osAccountId, jsonParams)) != HC_SUCCESS)) { in CheckCreateParams() 299 static int32_t DelPeerDeviceToken(int32_t osAccountId, const TrustedDeviceEntry *entry) in DelPeerDeviceToken() argument 311 … res = ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, DELETE_TRUSTED_CREDENTIALS, delParams, NULL); in DelPeerDeviceToken() 316 static void DelAllPeerTokens(int32_t osAccountId, const DeviceEntryVec *vec) in DelAllPeerTokens() argument 325 res = DelPeerDeviceToken(osAccountId, *entry); in DelAllPeerTokens() [all …]
|
/base/security/device_auth/services/cred_manager/src/account_related/ |
D | account_related_cred_plugin.c | 23 static int32_t ProcessAsyTokens(int32_t osAccountId, int32_t cmdId, CJson *in, CJson *out) in ProcessAsyTokens() argument 28 return GetAccountAuthTokenManager()->addToken(osAccountId, cmdId, in); in ProcessAsyTokens() 41 return GetAccountAuthTokenManager()->deleteToken(osAccountId, userId, deviceId); in ProcessAsyTokens() 55 static int32_t ProcessSymTokens(int32_t osAccountId, int32_t cmdId, CJson *in, CJson *out) in ProcessSymTokens() argument 60 return GetSymTokenManager()->addToken(osAccountId, cmdId, in); in ProcessSymTokens() 73 return GetSymTokenManager()->deleteToken(osAccountId, userId, deviceId); in ProcessSymTokens() 81 static int32_t ProcessAccountCredentials(int32_t osAccountId, int32_t cmdId, CJson *in, CJson *out) in ProcessAccountCredentials() argument 84 return ExcuteCredMgrCmd(osAccountId, cmdId, in, out); in ProcessAccountCredentials() 96 return ProcessAsyTokens(osAccountId, cmdId, in, out); in ProcessAccountCredentials() 98 return ProcessSymTokens(osAccountId, cmdId, in, out); in ProcessAccountCredentials()
|
/base/security/device_auth/services/creds_manager/src/account_related_mock/ |
D | account_related_creds_manager_mock.c | 20 int32_t GetAccountRelatedCredInfo(int32_t osAccountId, const char *groupId, const char *deviceId, in GetAccountRelatedCredInfo() argument 23 (void)osAccountId; in GetAccountRelatedCredInfo() 31 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const CertInfo *peerCertInfo, Uint8Buff *sh… in GetAccountAsymSharedSecret() argument 33 (void)osAccountId; in GetAccountAsymSharedSecret() 47 int32_t GetAccountAsymCredInfo(int32_t osAccountId, const CertInfo *certInfo, IdentityInfo **return… in GetAccountAsymCredInfo() argument 49 (void)osAccountId; in GetAccountAsymCredInfo()
|
/base/security/device_auth/services/authenticators/src/account_related/creds_manager/ |
D | sym_token_manager.c | 32 int32_t osAccountId; member 53 static bool GetTokensFilePath(int32_t osAccountId, char *tokenPath, uint32_t pathBufferLen) in GetTokensFilePath() argument 61 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetTokensFilePath() 64 …ByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_sym%d.dat", beginPath, osAccountId); in GetTokensFilePath() 140 static int32_t OpenTokenFile(int32_t osAccountId, FileHandle *file, int32_t mode) in OpenTokenFile() argument 147 if (!GetTokensFilePath(osAccountId, tokenPath, MAX_DB_PATH_LEN)) { in OpenTokenFile() 157 static int32_t ReadTokensFromFile(int32_t osAccountId, SymTokenVec *vec) in ReadTokensFromFile() argument 164 int32_t ret = OpenTokenFile(osAccountId, &file, MODE_FILE_READ); in ReadTokensFromFile() 202 static int32_t WriteTokensJsonToFile(int32_t osAccountId, CJson *tokensJson) in WriteTokensJsonToFile() argument 210 int32_t ret = OpenTokenFile(osAccountId, &file, MODE_FILE_WRITE); in WriteTokensJsonToFile() [all …]
|
/base/security/device_auth/services/creds_manager/src/account_related/ |
D | account_related_creds_manager.c | 34 static TrustedGroupEntry *GetSelfGroupEntryByPeerCert(int32_t osAccountId, const CertInfo *certInfo) in GetSelfGroupEntryByPeerCert() argument 68 …((AccountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, param, &queryParams,… in GetSelfGroupEntryByPeerCert() 80 static int32_t GetSelfDeviceEntryByPeerCert(int32_t osAccountId, const CertInfo *certInfo, in GetSelfDeviceEntryByPeerCert() argument 83 TrustedGroupEntry *groupEntry = GetSelfGroupEntryByPeerCert(osAccountId, certInfo); in GetSelfDeviceEntryByPeerCert() 89 int32_t ret = GetSelfDeviceEntry(osAccountId, groupId, deviceEntry); in GetSelfDeviceEntryByPeerCert() 218 static int32_t GetCertInfo(int32_t osAccountId, const char *userId, const char *authId, CertInfo *c… in GetCertInfo() argument 225 int32_t ret = GetAccountAuthTokenManager()->getToken(osAccountId, token, userId, authId); in GetCertInfo() 241 static int32_t GetAccountAsymIdentityInfo(int32_t osAccountId, const char *userId, const char *auth… in GetAccountAsymIdentityInfo() argument 244 int32_t ret = GetCertInfo(osAccountId, userId, authId, &info->proof.certInfo); in GetAccountAsymIdentityInfo() 274 static int32_t GetLocalDeviceType(int32_t osAccountId, const CJson *in, const char *groupId, in GetLocalDeviceType() argument [all …]
|
/base/security/device_auth/services/group_auth/inc/ |
D | group_auth_data_operation.h | 25 bool GaIsGroupAccessible(int32_t osAccountId, const char *groupId, const char *appId); 26 int32_t GaGetTrustedDeviceEntryById(int32_t osAccountId, const char *deviceId, 28 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *pe… 30 int32_t GaGetLocalDeviceInfo(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *localAut…
|
/base/security/device_auth/services/data_manager/inc/ |
D | data_manager.h | 82 int32_t AddGroup(int32_t osAccountId, const TrustedGroupEntry *groupEntry); 83 int32_t DelGroup(int32_t osAccountId, const QueryGroupParams *params); 84 int32_t AddTrustedDevice(int32_t osAccountId, const TrustedDeviceEntry *deviceEntry); 85 int32_t DelTrustedDevice(int32_t osAccountId, const QueryDeviceParams *params); 86 int32_t QueryGroups(int32_t osAccountId, const QueryGroupParams *params, GroupEntryVec *vec); 87 int32_t QueryDevices(int32_t osAccountId, const QueryDeviceParams *params, DeviceEntryVec *vec); 88 int32_t SaveOsAccountDb(int32_t osAccountId);
|
/base/security/device_auth/services/creds_manager/src/ |
D | creds_manager.c | 32 static int32_t GetAccountRelatedCandidateGroups(int32_t osAccountId, const CJson *in, bool isDevice… in GetAccountRelatedCandidateGroups() argument 43 …((AccountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, in, &queryParams, ve… in GetAccountRelatedCandidateGroups() 47 static int32_t GetAccountUnrelatedCandidateGroups(int32_t osAccountId, bool isDeviceLevel, GroupEnt… in GetAccountUnrelatedCandidateGroups() argument 54 return QueryGroups(osAccountId, &queryParams, vec); in GetAccountUnrelatedCandidateGroups() 83 static int32_t GetAccountUnrelatedIdentityInfo(int32_t osAccountId, const char *groupId, in GetAccountUnrelatedIdentityInfo() argument 91 int32_t ret = GaGetTrustedDeviceEntryById(osAccountId, deviceId, isUdid, groupId, deviceEntry); in GetAccountUnrelatedIdentityInfo() 107 static int32_t GetIdentityInfo(int32_t osAccountId, const TrustedGroupEntry *groupEntry, in GetIdentityInfo() argument 118 ret = GetAccountUnrelatedIdentityInfo(osAccountId, groupId, deviceId, isUdid, info); in GetIdentityInfo() 120 ret = GetAccountRelatedCredInfo(osAccountId, groupId, deviceId, isUdid, info); in GetIdentityInfo() 131 static bool IsDeviceInGroup(int32_t osAccountId, int32_t groupType, const char *deviceId, const cha… in IsDeviceInGroup() argument [all …]
|
/base/security/device_auth/services/ |
D | device_auth.c | 94 static const char *GetUdidByGroup(int32_t osAccountId, const char *groupId, const char *deviceIdHas… in GetUdidByGroup() argument 101 if (QueryDevices(osAccountId, ¶ms, &deviceEntryVec) != HC_SUCCESS) { in GetUdidByGroup() 118 static const char *GetDeviceIdByUdidHash(int32_t osAccountId, const char *deviceIdHash) in GetDeviceIdByUdidHash() argument 126 int32_t ret = QueryGroups(osAccountId, &queryParams, &groupEntryVec); in GetDeviceIdByUdidHash() 140 const char *udid = GetUdidByGroup(osAccountId, groupId, deviceIdHash); in GetDeviceIdByUdidHash() 150 static const char *GetPeerUdidFromJson(int32_t osAccountId, const CJson *in) in GetPeerUdidFromJson() argument 160 const char *deviceId = GetDeviceIdByUdidHash(osAccountId, peerConnDeviceId); in GetPeerUdidFromJson() 221 int32_t osAccountId; in AddGroupInfoToContextByDb() local 222 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddGroupInfoToContextByDb() 226 TrustedGroupEntry *entry = GetGroupEntryById(osAccountId, groupId); in AddGroupInfoToContextByDb() [all …]
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
D | compatible_auth_sub_session_util.c | 70 int32_t osAccountId = ANY_OS_ACCOUNT; in CombineAuthConfirmData() local 71 (void)GetIntFromJson(confirmationJson, FIELD_OS_ACCOUNT_ID, &osAccountId); in CombineAuthConfirmData() 72 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in CombineAuthConfirmData() 73 if (osAccountId == INVALID_OS_ACCOUNT) { in CombineAuthConfirmData() 77 if (AddIntToJson(dataFromClient, FIELD_OS_ACCOUNT_ID, osAccountId) != HC_SUCCESS) { in CombineAuthConfirmData()
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/ |
D | account_related_group_auth.c | 31 static int32_t FillAccountAuthInfo(int32_t osAccountId, const TrustedGroupEntry *entry, 33 static void GetAccountCandidateGroup(int32_t osAccountId, const CJson *param, 170 static bool IsPeerInIdenticalGroup(int32_t osAccountId, const char *peerUserId) in IsPeerInIdenticalGroup() argument 177 if (QueryGroups(osAccountId, &queryParams, &accountVec) != HC_SUCCESS) { in IsPeerInIdenticalGroup() 200 static void GaGetAccountGroup(int32_t osAccountId, GroupType type, const char *peerUserId, in GaGetAccountGroup() argument 205 if (QueryGroups(osAccountId, queryParams, vec) != HC_SUCCESS) { in GaGetAccountGroup() 229 static void GetAccountCandidateGroup(int32_t osAccountId, const CJson *param, in GetAccountCandidateGroup() argument 238 identicalFlag = IsPeerInIdenticalGroup(osAccountId, peerUserId); in GetAccountCandidateGroup() 245 GaGetAccountGroup(osAccountId, IDENTICAL_ACCOUNT_GROUP, peerUserId, queryParams, vec); in GetAccountCandidateGroup() 247 … GaGetAccountGroup(osAccountId, ACROSS_ACCOUNT_AUTHORIZE_GROUP, peerUserId, queryParams, vec); in GetAccountCandidateGroup() [all …]
|
/base/security/device_auth/services/authenticators/inc/account_related/creds_manager/ |
D | asy_token_manager.h | 40 int32_t (*addToken)(int32_t osAccountId, int32_t opCode, const CJson *in); 41 …int32_t (*getToken)(int32_t osAccountId, AccountToken *token, const char *userId, const char *devi… 42 int32_t (*deleteToken)(int32_t osAccountId, const char *userId, const char *deviceId); 46 Algorithm (*getAlgVersion)(int32_t osAccountId, const char *userId, const char *deviceId);
|
/base/security/device_auth/services/frameworks/src/os_account_adapter/ |
D | os_account_adapter.cpp | 38 int osAccountId = activatedOsAccountIds[0]; in DevAuthGetRealOsAccountLocalId() local 39 LOGI("[Account]: Use activated os account! [Id]: %d", osAccountId); in DevAuthGetRealOsAccountLocalId() 40 return osAccountId; in DevAuthGetRealOsAccountLocalId()
|
/base/security/device_auth/services/creds_manager/inc/account_related/ |
D | account_related_creds_manager.h | 26 int32_t GetAccountRelatedCredInfo(int32_t osAccountId, const char *groupId, const char *deviceId, 28 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const CertInfo *peerCertInfo, Uint8Buff *sh… 30 int32_t GetAccountAsymCredInfo(int32_t osAccountId, const CertInfo *certInfo, IdentityInfo **return…
|