/base/security/device_auth/services/group_auth/src/group_auth_manager/ |
D | group_auth_manager.c | 23 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/ |
D | device_auth.c | 38 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/ |
D | devauthservauthdevice_fuzzer.cpp | 103 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/ |
D | authdevice_fuzzer.cpp | 49 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/ |
D | group_auth_common_defines.h | 29 CJson *authParams; member
|
/base/security/device_auth/interfaces/innerkits/ |
D | device_auth.h | 156 int32_t (*authDevice)(int32_t osAccountId, int64_t authReqId, const char *authParams,
|
/base/security/device_auth/frameworks/src/ |
D | ipc_service.c | 947 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()
|
D | ipc_sdk.c | 1557 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/ |
D | README_zh.md | 124 …int32_t AuthDevice(int32_t osAccountId, int64_t authReqId, const char *authParams, const DeviceAut…
|
D | README.md | 121 …118111117133514"></a>int32_t AuthDevice(int64_t authReqId, const char *authParams, const DeviceAut…
|
/base/security/device_auth/services/group_manager/src/group_operation/ |
D | group_operation.c | 259 AuthModuleParams authParams = { in GetPkByParams() local 265 int32_t res = GetPublicKey(DAS_MODULE, &authParams, &returnPkBuff); in GetPkByParams()
|