/base/security/device_auth/services/group_auth/src/session/auth_session/ |
D | auth_session_util.c | 26 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 …]
|
D | auth_session_server.c | 33 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()
|
D | auth_session_common.c | 45 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/ |
D | group_auth_manager.c | 25 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()
|
D | group_auth_data_operation.c | 218 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/ |
D | auth_session_util.h | 32 int32_t AuthFormToGroupType(int32_t authForm);
|
D | auth_session_common.h | 34 int32_t GetGroupAuthType(int32_t authForm);
|
/base/security/device_auth/services/group_auth/src/session/ |
D | auth_session_common_util.c | 82 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/ |
D | account_related_group_auth.c | 312 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/ |
D | iso_auth_task_common.h | 27 int32_t authForm; member
|
/base/security/device_auth/services/authenticators/inc/account_related/auth/pake_v2_auth_task/ |
D | pake_v2_auth_task_common.h | 29 int32_t authForm; member
|
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/ |
D | pake_v2_auth_client_task.c | 55 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()
|
D | pake_v2_auth_server_task.c | 95 … 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/ |
D | iso_auth_server_task.c | 111 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()
|
D | iso_auth_client_task.c | 82 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()
|
D | iso_auth_task_common.c | 219 if (GetIntFromJson(in, FIELD_AUTH_FORM, ¶ms->authForm) != CLIB_SUCCESS) { in InitIsoAuthParams()
|
/base/security/device_auth/services/group_manager/src/session/bind_session/ |
D | bind_session_server.c | 33 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()
|