/base/security/device_auth/test/unittest/deviceauth/source/ |
D | group_operation_common_test.cpp | 43 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams() 51 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams() 247 CJson *jsonParams = CreateJson(); variable 261 CJson *jsonParams = CreateJson(); variable 269 CJson *jsonParams = CreateJson(); variable 283 CJson *jsonParams = CreateJson(); variable 364 CJson *jsonParams = CreateJson(); variable 399 CJson *jsonParams = CreateJson(); variable 408 CJson *jsonParams = CreateJson(); variable 423 CJson *jsonParams = CreateJson(); variable [all …]
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
D | compatible_bind_sub_session_util.c | 24 static int32_t AddPinCode(const CJson *returnData, CJson *jsonParams) in AddPinCode() 38 static int32_t AddAuthIdIfExist(const CJson *returnData, CJson *jsonParams) in AddAuthIdIfExist() 48 static int32_t AddUserTypeIfExistAndValid(const CJson *returnData, CJson *jsonParams) in AddUserTypeIfExistAndValid() 64 static int32_t AddGroupVisibilityIfExistAndValid(const CJson *returnData, CJson *jsonParams) in AddGroupVisibilityIfExistAndValid() 80 static int32_t AddExpireTimeIfExistAndValid(const CJson *returnData, CJson *jsonParams) in AddExpireTimeIfExistAndValid() 96 static int32_t CombineInfoWhenInvite(const CJson *returnData, CJson *jsonParams) in CombineInfoWhenInvite() 127 static int32_t GenerateGroupErrorMsg(int32_t errorCode, int64_t requestId, const CJson *jsonParams,… in GenerateGroupErrorMsg() 200 int32_t CombineConfirmData(int operationCode, const CJson *returnData, CJson *jsonParams) in CombineConfirmData() 233 void InformPeerProcessError(int64_t requestId, const CJson *jsonParams, const DeviceAuthCallback *c… in InformPeerProcessError()
|
D | compatible_bind_sub_session_common.c | 22 static int32_t AddPinCode(const CJson *jsonParams, CompatibleBindSubSession *session) in AddPinCode() 45 static int32_t AddGroupName(const CJson *jsonParams, CJson *params) in AddGroupName() 59 static int32_t AddGroupOwnerIfExist(const CJson *jsonParams, CJson *params) in AddGroupOwnerIfExist() 69 static int32_t AddGroupTypeIfValid(const CJson *jsonParams, CJson *params) in AddGroupTypeIfValid() 87 static int32_t AddGroupVisibilityIfValidOrDefault(const CJson *jsonParams, CJson *params) in AddGroupVisibilityIfValidOrDefault() 102 static int32_t AddExpireTimeIfValidOrDefault(const CJson *jsonParams, CJson *params) in AddExpireTimeIfValidOrDefault() 117 static int32_t AddGroupInfoToSessionParams(const char *groupId, const CJson *jsonParams, CJson *par… in AddGroupInfoToSessionParams() 163 …uthIdAndUserTypeIfValidOrDefault(int32_t osAccountId, const char *groupId, const CJson *jsonParams, in AddAuthIdAndUserTypeIfValidOrDefault() 213 static int32_t AddUserTypeIfValidOrDefault(const CJson *jsonParams, CJson *params) in AddUserTypeIfValidOrDefault() 228 …nt32_t AddDevInfoToSessionParams(int32_t osAccountId, const char *groupId, const CJson *jsonParams, in AddDevInfoToSessionParams() [all …]
|
D | compatible_bind_sub_session.c | 30 static int32_t CheckInvitePeer(const CJson *jsonParams) in CheckInvitePeer() 60 static int32_t CheckJoinPeer(const CJson *jsonParams) in CheckJoinPeer() 70 static int32_t CheckClientStatus(int operationCode, const CJson *jsonParams) in CheckClientStatus() 147 static int32_t GenerateKeyPairIfNeeded(int isClient, int32_t opCode, CJson *jsonParams) in GenerateKeyPairIfNeeded() 167 …t32_t CheckServerStatusIfNotInvite(int32_t osAccountId, int operationCode, const CJson *jsonParams) in CheckServerStatusIfNotInvite() 202 static int32_t GenerateServerBindParams(CompatibleBindSubSession *session, CJson *jsonParams) in GenerateServerBindParams() 227 static int32_t TryAddPeerUserTypeToParams(const CJson *jsonParams, CompatibleBindSubSession *sessio… in TryAddPeerUserTypeToParams() 477 static int32_t OnBindFinish(const CompatibleBindSubSession *session, const CJson *jsonParams, CJson… in OnBindFinish() 503 static int32_t OnSessionFinish(const CompatibleBindSubSession *session, CJson *jsonParams, CJson *o… in OnSessionFinish() 680 static int32_t AddRecvModuleDataToParams(CJson *jsonParams, CJson *moduleParams) in AddRecvModuleDataToParams() [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/ |
D | identical_account_group.c | 30 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams() 46 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams() 88 static int32_t GenerateIdenticalGroupId(const CJson *jsonParams, char **returnGroupId) in GenerateIdenticalGroupId() 104 static int32_t AssertCredentialExist(const CJson *jsonParams) in AssertCredentialExist() 114 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() 145 static int32_t ImportSelfToken(int32_t osAccountId, CJson *jsonParams) in ImportSelfToken() 179 static int32_t DelSelfToken(int32_t osAccountId, CJson *jsonParams) in DelSelfToken() 189 static int32_t GenerateAddTokenParams(const CJson *jsonParams, CJson *addParams) in GenerateAddTokenParams() 337 static int32_t GenerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDevice… in GenerateTrustedDevParams() 363 static int32_t AddDeviceAndToken(int32_t osAccountId, const CJson *jsonParams, CJson *deviceInfo) in AddDeviceAndToken() [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 53 static int32_t CheckGroupName(int32_t osAccountId, const char *appId, const CJson *jsonParams) in CheckGroupName() 97 static int32_t GeneratePeerToPeerGroupId(const CJson *jsonParams, char **returnGroupId) in GeneratePeerToPeerGroupId() 117 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() 135 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams() 159 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams() 173 static int32_t CreateGroupInner(int32_t osAccountId, const CJson *jsonParams, char **returnGroupId) in CreateGroupInner() 265 …c int32_t AddAuthIdAndUserTypeToParams(int32_t osAccountId, const char *groupId, CJson *jsonParams) in AddAuthIdAndUserTypeToParams() 301 static int32_t DelGroupAndSelfKeyInfo(int32_t osAccountId, const char *groupId, CJson *jsonParams) in DelGroupAndSelfKeyInfo() 323 static int32_t HandleLocalUnbind(int64_t requestId, const CJson *jsonParams, in HandleLocalUnbind() 360 …ic int32_t CheckPeerDeviceStatus(int32_t osAccountId, const char *groupId, const CJson *jsonParams) in CheckPeerDeviceStatus() [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() 126 static int32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *… in GenerateDevParams() 142 static int32_t GenerateGroupParams(const CJson *jsonParams, const char *groupId, TrustedGroupEntry … in GenerateGroupParams() 163 static int32_t GenerateAcrossAccountGroupId(const CJson *jsonParams, char **returnGroupId) in GenerateAcrossAccountGroupId() 186 static int32_t AssertIdenticalGroupExist(int32_t osAccountId, const CJson *jsonParams) in AssertIdenticalGroupExist() 221 static int32_t AssertSharedUserIdValid(const CJson *jsonParams) in AssertSharedUserIdValid() 240 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() 342 static int32_t CheckChangeParams(int32_t osAccountId, const char *appId, CJson *jsonParams) in CheckChangeParams() 372 static int32_t GenerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDevice… in GenerateTrustedDevParams() 398 static int32_t AddDeviceAndToken(int32_t osAccountId, const CJson *jsonParams, CJson *deviceInfo) in AddDeviceAndToken() [all …]
|
/base/security/device_auth/services/group_manager/src/ |
D | group_manager_common.c | 34 int32_t AddReqInfoToJson(int64_t requestId, const char *appId, CJson *jsonParams) in AddReqInfoToJson() 47 int32_t BindCallbackToTask(GroupManagerTask *task, const CJson *jsonParams) in BindCallbackToTask() 71 …2_t AddBindParamsToJson(int operationCode, int64_t requestId, const char *appId, CJson *jsonParams) in AddBindParamsToJson()
|
/base/security/device_auth/services/group_manager/src/group_operation/ |
D | group_operation_common.c | 582 int32_t CheckUserTypeIfExist(const CJson *jsonParams) in CheckUserTypeIfExist() 593 int32_t CheckGroupVisibilityIfExist(const CJson *jsonParams) in CheckGroupVisibilityIfExist() 604 int32_t CheckExpireTimeIfExist(const CJson *jsonParams) in CheckExpireTimeIfExist() 655 int32_t AddGroupVisibilityOrDefault(const CJson *jsonParams, TrustedGroupEntry *groupParams) in AddGroupVisibilityOrDefault() 664 int32_t AddExpireTimeOrDefault(const CJson *jsonParams, TrustedGroupEntry *groupParams) in AddExpireTimeOrDefault() 672 int32_t AddUserIdToGroupParams(const CJson *jsonParams, TrustedGroupEntry *groupParams) in AddUserIdToGroupParams() 688 int32_t AddSharedUserIdToGroupParams(const CJson *jsonParams, TrustedGroupEntry *groupParams) in AddSharedUserIdToGroupParams() 719 int32_t AddUdidToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams) in AddUdidToParams() 733 int32_t AddAuthIdToParamsOrDefault(const CJson *jsonParams, TrustedDeviceEntry *devParams) in AddAuthIdToParamsOrDefault() 753 int32_t AddAuthIdToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams) in AddAuthIdToParams() [all …]
|
D | group_operation.c | 387 static int32_t CreateGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) in CreateGroup() 402 static int32_t DeleteGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) in DeleteGroup() 419 … int32_t DeleteMemberFromPeerToPeerGroup(int32_t osAccountId, int64_t requestId, CJson *jsonParams, in DeleteMemberFromPeerToPeerGroup()
|
/base/security/device_auth/services/group_manager/src/channel_manager/ |
D | channel_manager.c | 46 ChannelType GetChannelType(const DeviceAuthCallback *callback, const CJson *jsonParams) in GetChannelType() 60 int32_t OpenChannel(ChannelType channelType, const CJson *jsonParams, int64_t requestId, int64_t *r… in OpenChannel()
|
/base/security/device_auth/services/session_manager/src/session/v1/ |
D | compatible_sub_session.c | 22 int32_t CreateCompatibleSubSession(SubSessionTypeValue sessionType, CJson *jsonParams, in CreateCompatibleSubSession()
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
D | compatible_auth_sub_session.c | 40 static int32_t CreateClientAuthSubSessionInner(int32_t osAccountId, CJson *jsonParams, in CreateClientAuthSubSessionInner() 278 int32_t CreateClientAuthSubSession(CJson *jsonParams, const DeviceAuthCallback *callback, in CreateClientAuthSubSession() 298 int32_t CreateServerAuthSubSession(CJson *jsonParams, const DeviceAuthCallback *callback, in CreateServerAuthSubSession()
|