Home
last modified time | relevance | path

Searched refs:authForm (Results 1 – 17 of 17) sorted by relevance

/base/security/device_auth/services/group_auth/src/session/auth_session/
Dauth_session_util.c26 static int32_t AuthFormToModuleType(int32_t authForm) in AuthFormToModuleType() argument
29 if (authForm == AUTH_FORM_ACCOUNT_UNRELATED) { in AuthFormToModuleType()
31 … } else if ((authForm == AUTH_FORM_IDENTICAL_ACCOUNT) || (authForm == AUTH_FORM_ACROSS_ACCOUNT)) { in AuthFormToModuleType()
56 int32_t authForm = AUTH_FORM_INVALID_TYPE; in GetAuthModuleType() local
57 if (GetIntFromJson(in, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetAuthModuleType()
61 return AuthFormToModuleType(authForm); in GetAuthModuleType()
108 int32_t authForm; in GroupTypeToAuthForm() local
111 authForm = AUTH_FORM_ACCOUNT_UNRELATED; in GroupTypeToAuthForm()
114 authForm = AUTH_FORM_ACCOUNT_UNRELATED; in GroupTypeToAuthForm()
117 authForm = AUTH_FORM_IDENTICAL_ACCOUNT; in GroupTypeToAuthForm()
[all …]
Dauth_session_server.c33 int32_t authForm = AUTH_FORM_INVALID_TYPE; in CombineServerParams() local
34 if (GetIntFromJson(dataFromClient, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in CombineServerParams()
48 int32_t groupAuthType = GetGroupAuthType(authForm); in CombineServerParams()
63 int32_t authForm = AUTH_FORM_INVALID_TYPE; in GetAuthInfoForServer() local
64 if (GetIntFromJson(dataFromClient, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetAuthInfoForServer()
68 int32_t groupAuthType = GetGroupAuthType(authForm); in GetAuthInfoForServer()
86 int32_t authForm = AUTH_FORM_INVALID_TYPE; in StartServerRequest() local
87 if (GetIntFromJson(dataFromClient, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in StartServerRequest()
91 int32_t groupAuthType = GetGroupAuthType(authForm); in StartServerRequest()
Dauth_session_common.c45 int32_t authForm = GroupTypeToAuthForm(groupType); in AddGeneralParams() local
50 if (AddIntToJson(paramsData, FIELD_AUTH_FORM, authForm) != HC_SUCCESS) { in AddGeneralParams()
77 int32_t authForm = GroupTypeToAuthForm(groupType); in ExtractAndAddParams() local
88 BaseGroupAuth *groupAuth = GetGroupAuth(GetGroupAuthType(authForm)); in ExtractAndAddParams()
319 int32_t authForm = AUTH_FORM_INVALID_TYPE; in ReturnFinishData() local
320 if (GetIntFromJson(authParam, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in ReturnFinishData()
324 BaseGroupAuth *groupAuth = GetGroupAuth(GetGroupAuthType(authForm)); in ReturnFinishData()
335 int32_t authForm = AUTH_FORM_INVALID_TYPE; in ReturnErrorToLocalBySession() local
344 if (GetIntFromJson(authParam, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in ReturnErrorToLocalBySession()
348 BaseGroupAuth *groupAuth = GetGroupAuth(GetGroupAuthType(authForm)); in ReturnErrorToLocalBySession()
[all …]
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_manager.c25 int32_t authForm = AUTH_FORM_INVALID_TYPE; in GetModuleTypeFromPayload() local
26 if (GetIntFromJson(authParams, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetModuleTypeFromPayload()
30 if (authForm == AUTH_FORM_ACCOUNT_UNRELATED) { in GetModuleTypeFromPayload()
32 … } else if ((authForm == AUTH_FORM_IDENTICAL_ACCOUNT) || (authForm == AUTH_FORM_ACROSS_ACCOUNT)) { in GetModuleTypeFromPayload()
Dgroup_auth_data_operation.c218 int32_t authForm = GroupTypeToAuthForm(groupType); in GaIsDeviceInGroup() local
219 if ((authForm == AUTH_FORM_ACROSS_ACCOUNT) || (authForm == AUTH_FORM_IDENTICAL_ACCOUNT)) { in GaIsDeviceInGroup()
/base/security/device_auth/services/group_auth/inc/session/auth_session/
Dauth_session_util.h32 int32_t AuthFormToGroupType(int32_t authForm);
Dauth_session_common.h34 int32_t GetGroupAuthType(int32_t authForm);
/base/security/device_auth/services/group_auth/src/session/
Dauth_session_common_util.c82 int32_t authForm = AUTH_FORM_INVALID_TYPE; in GetServerConfirmation() local
83 if (GetIntFromJson(paramsFromClient, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetServerConfirmation()
92 serverInfo = callback->onRequest(requestId, authForm, reqParamStr); in GetServerConfirmation()
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c312 int32_t authForm = AUTH_FORM_INVALID_TYPE; in OnAccountError() local
313 if (GetIntFromJson(authParam, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in OnAccountError()
332 callback->onError(requestId, authForm, errorCode, NULL); in OnAccountError()
386 int32_t authForm = AUTH_FORM_INVALID_TYPE; in QueryAuthGroupForServer() local
387 if (GetIntFromJson(data, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in QueryAuthGroupForServer()
391 int32_t groupType = AuthFormToGroupType(authForm); in QueryAuthGroupForServer()
393 LOGE("Invalid authForm, authForm = %d.", authForm); in QueryAuthGroupForServer()
698 int32_t authForm = AUTH_FORM_INVALID_TYPE; in AccountOnFinishToSelf() local
699 if (GetIntFromJson(authParam, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in AccountOnFinishToSelf()
706 callback->onFinish(requestId, authForm, returnStr); in AccountOnFinishToSelf()
/base/security/device_auth/services/authenticators/inc/account_related/auth/iso_auth_task/
Diso_auth_task_common.h27 int32_t authForm; member
/base/security/device_auth/services/authenticators/inc/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_task_common.h29 int32_t authForm; member
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_client_task.c55 GOTO_IF_ERR(GetIntFromJson(in, FIELD_AUTH_FORM, &innerTask->params.authForm)); in AsyAuthClientStepOne()
58 GOTO_IF_ERR(AddIntToJson(sendToPeer, FIELD_AUTH_FORM, innerTask->params.authForm)); in AsyAuthClientStepOne()
118 … GOTO_ERR_AND_SET_RET(AddIntToJson(sendToPeer, FIELD_AUTH_FORM, innerTask->params.authForm), ret); in PrepareAsyClientStepTwoData()
Dpake_v2_auth_server_task.c95 … GOTO_ERR_AND_SET_RET(AddIntToJson(sendToPeer, FIELD_AUTH_FORM, innerTask->params.authForm), ret); in PrepareAsyServerStepOneData()
122 GOTO_IF_ERR(GetIntFromJson(in, FIELD_AUTH_FORM, &innerTask->params.authForm)); in AsyAuthServerStepOne()
191 GOTO_IF_ERR(AddIntToJson(sendToPeer, FIELD_AUTH_FORM, task->params.authForm)); in SendFinalToOut()
/base/security/device_auth/services/authenticators/src/account_related/auth/iso_auth_task/
Diso_auth_server_task.c111 if (AddIntToJson(sendToPeer, FIELD_AUTH_FORM, params->authForm) != CLIB_SUCCESS) { in PackIsoAuthServerGetTokenMsg()
210 if (AddIntToJson(sendToPeer, FIELD_AUTH_FORM, params->authForm) != CLIB_SUCCESS) { in PackCalTokenAndSessionKeyMsg()
Diso_auth_client_task.c82 if (AddIntToJson(sendToPeer, FIELD_AUTH_FORM, params->authForm) != CLIB_SUCCESS) { in PackIsoAuthClientBeginMsg()
207 if (AddIntToJson(sendToPeer, FIELD_AUTH_FORM, params->authForm) != CLIB_SUCCESS) { in PackIsoAuthClientGetTokenMsg()
Diso_auth_task_common.c219 if (GetIntFromJson(in, FIELD_AUTH_FORM, &params->authForm) != CLIB_SUCCESS) { in InitIsoAuthParams()
/base/security/device_auth/services/group_manager/src/session/bind_session/
Dbind_session_server.c33 int32_t authForm = AUTH_FORM_INVALID_TYPE; in AddRecvModuleDataToParams() local
34 (void)GetIntFromJson(jsonParams, FIELD_AUTH_FORM, &authForm); in AddRecvModuleDataToParams()
44 if (AddIntToJson(moduleParams, FIELD_AUTH_FORM, authForm) != HC_SUCCESS) { in AddRecvModuleDataToParams()