/base/security/device_auth/test/unittest/deviceauth/source/ |
D | protocol_task_main_mock.c | 48 bool isClient = true; in CreatePakeV1SubTask() local 49 if (GetBoolFromJson(in, FIELD_IS_CLIENT, &isClient) != HC_SUCCESS) { in CreatePakeV1SubTask() 53 if (isClient) { in CreatePakeV1SubTask() 77 bool isClient = true; in CreateIsoSubTask() local 78 if (GetBoolFromJson(in, FIELD_IS_CLIENT, &isClient) != HC_SUCCESS) { in CreateIsoSubTask() 82 if (isClient) { in CreateIsoSubTask()
|
D | hc_dev_info_mock.c | 31 void SetDeviceStatus(bool isClient) in SetDeviceStatus() argument 33 g_isClient = isClient; in SetDeviceStatus()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/ |
D | iso_task_main.c | 30 bool isClient = true; in CreateIsoSubTask() local 31 if (GetBoolFromJson(in, FIELD_IS_CLIENT, &isClient) != HC_SUCCESS) { in CreateIsoSubTask() 35 if (isClient) { in CreateIsoSubTask()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/pake_v1_task/ |
D | pake_v1_task_main.c | 30 bool isClient = true; in CreatePakeV1SubTask() local 31 if (GetBoolFromJson(in, FIELD_IS_CLIENT, &isClient) != HC_SUCCESS) { in CreatePakeV1SubTask() 35 if (isClient) { in CreatePakeV1SubTask()
|
/base/security/device_auth/services/session_manager/inc/session/v1/compatible_bind_sub_session/ |
D | compatible_bind_sub_session_common.h | 25 bool IsCreateGroupNeeded(int isClient, int operationCode); 26 int32_t GenerateBaseBindParams(int32_t osAccountId, int isClient, const CJson *jsonParams, 28 int32_t GenerateBaseModuleParams(bool isClient, CompatibleBindSubSession *session, CJson *modulePar…
|
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/dev_info_mock/src/ |
D | dev_info_mock.c | 29 void SetDeviceStatus(bool isClient) in SetDeviceStatus() argument 31 g_isClient = isClient; in SetDeviceStatus()
|
/base/security/device_auth/test/unittest/tdd_framework/common/src/ |
D | hc_dev_info_mock.c | 35 void SetDeviceStatus(bool isClient) in SetDeviceStatus() argument 37 g_isClient = isClient; in SetDeviceStatus()
|
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/ |
D | mk_agree.c | 232 static int32_t InitMkAgreeTask(MkAgreeCmd *cmd, const MkAgreeParams *params, bool isClient) in InitMkAgreeTask() argument 239 if (AddBoolToJson(json, FIELD_IS_CLIENT, isClient) != HC_SUCCESS) { in InitMkAgreeTask() 268 bool isClient, int32_t strategy) in InitMkAgreeCmd() argument 270 int32_t res = InitMkAgreeTask(cmd, params, isClient); in InitMkAgreeCmd() 277 cmd->base.isCaller = isClient; in InitMkAgreeCmd() 278 cmd->base.beginState = isClient ? CLIENT_INIT_STATE : SERVER_WAIT_REQUEST_STATE; in InitMkAgreeCmd() 288 BaseCmd *CreateMkAgreeCmd(const void *baseParams, bool isClient, int32_t strategy) in CreateMkAgreeCmd() argument 300 int32_t res = InitMkAgreeCmd(cmd, params, isClient, strategy); in CreateMkAgreeCmd()
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
D | compatible_auth_sub_session_common.c | 30 …tRelatedCandidateGroups(int32_t osAccountId, const CJson *param, bool isDeviceLevel, bool isClient, in GetAccountRelatedCandidateGroups() argument 34 if (!isDeviceLevel || !isClient) { in GetAccountRelatedCandidateGroups() 48 …tic void GetAccountUnrelatedCandidateGroups(int32_t osAccountId, bool isDeviceLevel, bool isClient, in GetAccountUnrelatedCandidateGroups() argument 52 if (!isDeviceLevel || !isClient) { in GetAccountUnrelatedCandidateGroups() 68 bool isClient = true; in GetCandidateGroups() local 70 if (GetBoolFromJson(param, FIELD_IS_CLIENT, &isClient) != HC_SUCCESS) { in GetCandidateGroups() 74 if (isDeviceLevel && isClient) { in GetCandidateGroups() 77 GetAccountRelatedCandidateGroups(osAccountId, param, isDeviceLevel, isClient, vec); in GetCandidateGroups() 78 GetAccountUnrelatedCandidateGroups(osAccountId, isDeviceLevel, isClient, vec); in GetCandidateGroups() 589 bool isClient = true; in AddGroupAuthTransmitData() local [all …]
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
D | compatible_bind_sub_session_common.c | 336 static int32_t AddGroupAndDevInfo(int32_t osAccountId, int isClient, const CJson *jsonParams, in AddGroupAndDevInfo() argument 344 if (IsCreateGroupNeeded(isClient, session->opCode)) { in AddGroupAndDevInfo() 398 static int32_t AddRequestInfoToParams(bool isClient, const CompatibleBindSubSession *session, CJson… in AddRequestInfoToParams() argument 408 if (AddBoolToJson(moduleParams, FIELD_IS_CLIENT, isClient) != HC_SUCCESS) { in AddRequestInfoToParams() 567 bool IsCreateGroupNeeded(int isClient, int operationCode) in IsCreateGroupNeeded() argument 569 return ((isClient == CLIENT) && (operationCode == MEMBER_JOIN)) || in IsCreateGroupNeeded() 570 ((isClient == SERVER) && (operationCode == MEMBER_INVITE)); in IsCreateGroupNeeded() 573 int32_t GenerateBaseBindParams(int32_t osAccountId, int isClient, const CJson *jsonParams, in GenerateBaseBindParams() argument 586 ((result = AddGroupAndDevInfo(osAccountId, isClient, jsonParams, session)) != HC_SUCCESS) || in GenerateBaseBindParams() 594 int32_t GenerateBaseModuleParams(bool isClient, CompatibleBindSubSession *session, CJson *modulePar… in GenerateBaseModuleParams() argument [all …]
|
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/protocol_lib/ |
D | iso_protocol.h | 33 int32_t CreateIsoProtocol(const void *baseParams, bool isClient, BaseProtocol **returnObj);
|
D | ec_speke_protocol.h | 39 int32_t CreateEcSpekeProtocol(const void *baseParams, bool isClient, BaseProtocol **returnObj);
|
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/dev_info_mock/inc/ |
D | dev_info_mock.h | 43 void SetDeviceStatus(bool isClient);
|
/base/security/device_auth/test/unittest/tdd_framework/common/inc/ |
D | hc_dev_info_mock.h | 44 void SetDeviceStatus(bool isClient);
|
/base/security/device_auth/test/unittest/deviceauth/include/ |
D | hc_dev_info_mock.h | 44 void SetDeviceStatus(bool isClient);
|
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/ |
D | ec_speke_protocol.c | 106 static int32_t GetAuthIdPeerFromInput(const CJson *inputEvent, EcSpekeParams *params, bool isClient) in GetAuthIdPeerFromInput() argument 108 const char *authIdPeerStr = isClient ? GetStringFromJson(inputEvent, FIELD_AUTH_ID_SERVER) : in GetAuthIdPeerFromInput() 143 static int32_t GetEpkPeerFromInput(const CJson *inputEvent, EcSpekeParams *params, bool isClient) in GetEpkPeerFromInput() argument 145 const char *epkPeerStr = isClient ? GetStringFromJson(inputEvent, FIELD_EPK_SERVER) : in GetEpkPeerFromInput() 162 …atic int32_t GetKcfDataPeerFromInput(const CJson *inputEvent, EcSpekeParams *params, bool isClient) in GetKcfDataPeerFromInput() argument 168 if (GetByteFromJson(inputEvent, (isClient ? FIELD_KCF_DATA_SERVER : FIELD_KCF_DATA_CLIENT), in GetKcfDataPeerFromInput() 527 static int32_t GenerateKcfDataMsg(EcSpekeProtocol *impl, bool isClient, bool isVerify, Uint8Buff *k… in GenerateKcfDataMsg() argument 530 …const uint8_t *kcfCode = ((isClient && !isVerify) || (!isClient && isVerify)) ? KCF_CODE_CLIENT : … in GenerateKcfDataMsg() 536 Uint8Buff *epkClient = isClient ? ¶ms->epkSelf : ¶ms->epkPeer; in GenerateKcfDataMsg() 537 Uint8Buff *epkServer = isClient ? ¶ms->epkPeer : ¶ms->epkSelf; in GenerateKcfDataMsg() [all …]
|
/base/security/device_auth/services/authenticators/src/account_related/ |
D | account_task_main.c | 176 bool isClient = false; in AccountSendCreateError() local 177 if (GetBoolFromJson(in, FIELD_IS_CLIENT, &isClient) != CLIB_SUCCESS) { in AccountSendCreateError() 180 if (isClient) { in AccountSendCreateError()
|
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/ |
D | auth_sub_session.c | 26 typedef int32_t (*CreateProtocolFunc)(const void *baseParams, bool isClient, BaseProtocol **); 140 int32_t CreateAuthSubSession(int32_t protocolType, void *params, bool isClient, AuthSubSession **re… in CreateAuthSubSession() argument 152 int32_t res = component->createProtocolFunc(params, isClient, &protocol); in CreateAuthSubSession()
|
/base/security/device_auth/services/session_manager/inc/session/ |
D | dev_session_def.h | 36 bool isClient; member
|
/base/security/device_auth/services/session_manager/inc/session/v2/expand_sub_session/ |
D | expand_sub_session.h | 31 void *params, bool isClient, int32_t strategy);
|
/base/security/device_auth/services/authenticators/inc/account_unrelated/iso_task/ |
D | iso_base_cur_task.h | 52 bool isClient; member
|
/base/security/device_auth/services/session_manager/inc/session/v2/ |
D | dev_session_util.h | 27 int32_t FillPeerAuthIdIfNeeded(bool isClient, const CJson *context, CJson *inputData);
|
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/ |
D | auth_sub_session.h | 46 int32_t CreateAuthSubSession(int32_t protocolType, void *params, bool isClient, AuthSubSession **re…
|
/base/security/device_auth/services/protocol/inc/pake_protocol/ |
D | pake_defs.h | 71 bool isClient; member
|
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/ |
D | pake_v2_auth_task_common.c | 45 bool isClient = false; in CreatePakeV2AuthTask() local 46 if (GetBoolFromJson(in, FIELD_IS_CLIENT, &isClient) != HC_SUCCESS) { in CreatePakeV2AuthTask() 48 isClient = false; in CreatePakeV2AuthTask() 50 if (isClient) { in CreatePakeV2AuthTask() 416 GOTO_IF_ERR(GetBoolFromJson(in, FIELD_IS_CLIENT, ¶ms->pakeParams.isClient)); in InitPakeAuthParams()
|