Home
last modified time | relevance | path

Searched refs:authParams (Results 1 – 11 of 11) sorted by relevance

/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_manager.c23 static int32_t GetModuleTypeFromPayload(const CJson *authParams) in GetModuleTypeFromPayload() argument
26 if (GetIntFromJson(authParams, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetModuleTypeFromPayload()
79 if (GetBoolFromJson(realTask->authParams, FIELD_IS_CLIENT, &isClient)) { in DoAuthDevice()
87 …int32_t result = CreateSession(realTask->authReqId, TYPE_CLIENT_AUTH_SESSION, realTask->authParams, in DoAuthDevice()
109 res = ProcessSession(realTask->authReqId, AUTH_TYPE, realTask->authParams); in DoProcessAuthData()
115 … res = CheckMsgRepeatability(realTask->authParams, GetModuleTypeFromPayload(realTask->authParams)); in DoProcessAuthData()
120 res = CreateSession(realTask->authReqId, TYPE_SERVER_AUTH_SESSION, realTask->authParams, in DoProcessAuthData()
/base/security/device_auth/services/
Ddevice_auth.c38 FreeJson(realTask->authParams); in DestroyGroupAuthTask()
41 …InitAuthDeviceTask(int32_t osAccountId, AuthDeviceTask *task, int64_t authReqId, CJson *authParams, in InitAuthDeviceTask() argument
47 …if (AddByteToJson(authParams, FIELD_REQUEST_ID, (const uint8_t*)&authReqId, sizeof(int64_t)) != HC… in InitAuthDeviceTask()
51 if (AddIntToJson(authParams, FIELD_OS_ACCOUNT_ID, osAccountId) != HC_SUCCESS) { in InitAuthDeviceTask()
55 task->authParams = authParams; in InitAuthDeviceTask()
78 task->authParams = receivedData; in InitProcessDataTask()
87 static int32_t AuthDevice(int32_t osAccountId, int64_t authReqId, const char *authParams, in AuthDevice() argument
92 if ((authParams == NULL) || (osAccountId == INVALID_OS_ACCOUNT)) { in AuthDevice()
96 CJson *jsonParams = CreateJsonFromString(authParams); in AuthDevice()
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservauthdevice_fuzzer/
Ddevauthservauthdevice_fuzzer.cpp103 char *authParams = PackJsonToString(authParamsJson); in FuzzDoAuthDevice() local
105 LOGI("auth params str:%s", authParams); in FuzzDoAuthDevice()
107 gaInstance->authDevice(0, reqId, authParams, &g_devAuthCallback); in FuzzDoAuthDevice()
109 ClearAndFreeJsonString(authParams); in FuzzDoAuthDevice()
/base/security/device_auth/test/fuzztest/group_auth/authdevice_fuzzer/
Dauthdevice_fuzzer.cpp49 std::string authParams(reinterpret_cast<const char *>(data), size); in FuzzDoAuthDevice()
56 gaInstance->authDevice(*osAccountId, *authReqId, authParams.c_str(), &gaCallback); in FuzzDoAuthDevice()
/base/security/device_auth/services/group_auth/inc/
Dgroup_auth_common_defines.h29 CJson *authParams; member
/base/security/device_auth/interfaces/innerkits/
Ddevice_auth.h156 int32_t (*authDevice)(int32_t osAccountId, int64_t authReqId, const char *authParams,
/base/security/device_auth/frameworks/src/
Dipc_service.c947 const char *authParams = NULL; in IpcServiceGaAuthDevice() local
964 …etIpcRequestParamByType(ipcParams, paramNum, PARAM_TYPE_AUTH_PARAMS, (uint8_t *)&authParams, NULL); in IpcServiceGaAuthDevice()
965 if ((authParams == NULL) || (ret != HC_SUCCESS)) { in IpcServiceGaAuthDevice()
991 callRet = g_groupAuthMgrMethod.authDevice(osAccountId, authReqId, authParams, &g_authCbAdt); in IpcServiceGaAuthDevice()
Dipc_sdk.c1557 static int32_t IpcGaAuthDevice(int32_t osAccountId, int64_t authReqId, const char *authParams, in IpcGaAuthDevice() argument
1566 if (!IS_STRING_VALID(authParams) || (callback == NULL)) { in IpcGaAuthDevice()
1592 …estParamInfo(callCtx, PARAM_TYPE_AUTH_PARAMS, (const uint8_t *)authParams, strlen(authParams) + 1); in IpcGaAuthDevice()
/base/security/device_auth/
DREADME_zh.md124 …int32_t AuthDevice(int32_t osAccountId, int64_t authReqId, const char *authParams, const DeviceAut…
DREADME.md121 …118111117133514"></a>int32_t AuthDevice(int64_t authReqId, const char *authParams, const DeviceAut…
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation.c259 AuthModuleParams authParams = { in GetPkByParams() local
265 int32_t res = GetPublicKey(DAS_MODULE, &authParams, &returnPkBuff); in GetPkByParams()