Home
last modified time | relevance | path

Searched refs:isClient (Results 1 – 25 of 49) sorted by relevance

12

/base/security/device_auth/test/unittest/deviceauth/source/
Dprotocol_task_main_mock.c48 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()
Dhc_dev_info_mock.c31 void SetDeviceStatus(bool isClient) in SetDeviceStatus() argument
33 g_isClient = isClient; in SetDeviceStatus()
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/
Diso_task_main.c30 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/
Dpake_v1_task_main.c30 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/
Dcompatible_bind_sub_session_common.h25 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/
Ddev_info_mock.c29 void SetDeviceStatus(bool isClient) in SetDeviceStatus() argument
31 g_isClient = isClient; in SetDeviceStatus()
/base/security/device_auth/test/unittest/tdd_framework/common/src/
Dhc_dev_info_mock.c35 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/
Dmk_agree.c232 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/
Dcompatible_auth_sub_session_common.c30 …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/
Dcompatible_bind_sub_session_common.c336 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/
Diso_protocol.h33 int32_t CreateIsoProtocol(const void *baseParams, bool isClient, BaseProtocol **returnObj);
Dec_speke_protocol.h39 int32_t CreateEcSpekeProtocol(const void *baseParams, bool isClient, BaseProtocol **returnObj);
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/dev_info_mock/inc/
Ddev_info_mock.h43 void SetDeviceStatus(bool isClient);
/base/security/device_auth/test/unittest/tdd_framework/common/inc/
Dhc_dev_info_mock.h44 void SetDeviceStatus(bool isClient);
/base/security/device_auth/test/unittest/deviceauth/include/
Dhc_dev_info_mock.h44 void SetDeviceStatus(bool isClient);
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
Dec_speke_protocol.c106 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 ? &params->epkSelf : &params->epkPeer; in GenerateKcfDataMsg()
537 Uint8Buff *epkServer = isClient ? &params->epkPeer : &params->epkSelf; in GenerateKcfDataMsg()
[all …]
/base/security/device_auth/services/authenticators/src/account_related/
Daccount_task_main.c176 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/
Dauth_sub_session.c26 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/
Ddev_session_def.h36 bool isClient; member
/base/security/device_auth/services/session_manager/inc/session/v2/expand_sub_session/
Dexpand_sub_session.h31 void *params, bool isClient, int32_t strategy);
/base/security/device_auth/services/authenticators/inc/account_unrelated/iso_task/
Diso_base_cur_task.h52 bool isClient; member
/base/security/device_auth/services/session_manager/inc/session/v2/
Ddev_session_util.h27 int32_t FillPeerAuthIdIfNeeded(bool isClient, const CJson *context, CJson *inputData);
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/
Dauth_sub_session.h46 int32_t CreateAuthSubSession(int32_t protocolType, void *params, bool isClient, AuthSubSession **re…
/base/security/device_auth/services/protocol/inc/pake_protocol/
Dpake_defs.h71 bool isClient; member
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_task_common.c45 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, &params->pakeParams.isClient)); in InitPakeAuthParams()

12