/base/security/device_auth/services/group_auth/src/group_auth_manager/ |
D | group_auth_manager.c | 39 int32_t GetAuthState(int64_t authReqId, const char *groupId, const char *peerUdid, uint8_t *out, ui… in GetAuthState() argument 41 (void)authReqId; in GetAuthState() 87 …int32_t result = CreateSession(realTask->authReqId, TYPE_CLIENT_AUTH_SESSION, realTask->authParams, in DoAuthDevice() 94 realTask->callback->onError(realTask->authReqId, AUTH_FORM_INVALID_TYPE, result, NULL); in DoAuthDevice() 108 if (IsRequestExist(realTask->authReqId)) { in DoProcessAuthData() 109 res = ProcessSession(realTask->authReqId, AUTH_TYPE, realTask->authParams); in DoProcessAuthData() 111 DestroySession(realTask->authReqId); in DoProcessAuthData() 120 res = CreateSession(realTask->authReqId, TYPE_SERVER_AUTH_SESSION, realTask->authParams, in DoProcessAuthData() 127 realTask->callback->onError(realTask->authReqId, AUTH_FORM_INVALID_TYPE, res, NULL); in DoProcessAuthData()
|
/base/security/device_auth/services/ |
D | device_auth.c | 41 static bool InitAuthDeviceTask(int32_t osAccountId, AuthDeviceTask *task, int64_t authReqId, CJson … in InitAuthDeviceTask() argument 46 task->authReqId = authReqId; in InitAuthDeviceTask() 47 …if (AddByteToJson(authParams, FIELD_REQUEST_ID, (const uint8_t*)&authReqId, sizeof(int64_t)) != HC… in InitAuthDeviceTask() 64 static bool InitProcessDataTask(AuthDeviceTask *task, int64_t authReqId, in InitProcessDataTask() argument 69 task->authReqId = authReqId; in InitProcessDataTask() 70 …if (AddByteToJson(receivedData, FIELD_REQUEST_ID, (const uint8_t*)&authReqId, sizeof(int64_t)) != … in InitProcessDataTask() 87 static int32_t AuthDevice(int32_t osAccountId, int64_t authReqId, const char *authParams, in AuthDevice() argument 90 LOGI("Begin AuthDevice. [requestId]:%" PRId64, authReqId); in AuthDevice() 107 if (!InitAuthDeviceTask(osAccountId, task, authReqId, jsonParams, gaCallback)) { in AuthDevice() 122 static int32_t ProcessData(int64_t authReqId, const uint8_t *data, uint32_t dataLen, in ProcessData() argument [all …]
|
/base/security/device_auth/test/fuzztest/group_manage/processbinddata_fuzzer/ |
D | processbinddata_fuzzer.cpp | 31 const int64_t *authReqId = reinterpret_cast<const int64_t *>(data); in FuzzDoProcessData() local 32 gmInstance->processData(*authReqId, data, (uint32_t)size); in FuzzDoProcessData()
|
/base/security/device_auth/test/fuzztest/group_auth/processauthdata_fuzzer/ |
D | processauthdata_fuzzer.cpp | 47 const int64_t *authReqId = reinterpret_cast<const int64_t *>(data); in FuzzDoProcessData() local 54 gaInstance->processData(*authReqId, data, (uint32_t)size, &gaCallback); in FuzzDoProcessData()
|
/base/security/device_auth/test/fuzztest/group_auth/authdevice_fuzzer/ |
D | authdevice_fuzzer.cpp | 48 const int64_t *authReqId = reinterpret_cast<const int64_t *>(data); in FuzzDoAuthDevice() local 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 | 28 int64_t authReqId; member
|
D | group_auth_manager.h | 24 int32_t GetAuthState(int64_t authReqId, const char *groupId, const char *peerUdid, uint8_t *out, ui…
|
/base/security/device_auth/frameworks/src/ |
D | ipc_service.c | 892 int64_t authReqId = 0; in IpcServiceGaProcessData() local 899 inOutLen = sizeof(authReqId); in IpcServiceGaProcessData() 900 …ret = GetIpcRequestParamByType(ipcParams, paramNum, PARAM_TYPE_REQID, (uint8_t *)&authReqId, &inOu… in IpcServiceGaProcessData() 901 if ((inOutLen != sizeof(authReqId)) || (ret != HC_SUCCESS)) { in IpcServiceGaProcessData() 916 ret = AddIpcCallBackByReqId(authReqId, (const uint8_t *)gaCallback, in IpcServiceGaProcessData() 926 DelIpcCallBackByReqId(authReqId, CB_TYPE_TMP_DEV_AUTH, true); in IpcServiceGaProcessData() 929 AddIpcCbObjByReqId(authReqId, cbObjIdx, CB_TYPE_TMP_DEV_AUTH); in IpcServiceGaProcessData() 931 callRet = g_groupAuthMgrMethod.processData(authReqId, data, dataLen, &g_authCbAdt); in IpcServiceGaProcessData() 933 DelIpcCallBackByReqId(authReqId, CB_TYPE_TMP_DEV_AUTH, true); in IpcServiceGaProcessData() 946 int64_t authReqId = 0; in IpcServiceGaAuthDevice() local [all …]
|
D | ipc_sdk.c | 1500 static int32_t IpcGaProcessData(int64_t authReqId, in IpcGaProcessData() argument 1523 …tCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&authReqId), sizeof(authReqId)); in IpcGaProcessData() 1557 static int32_t IpcGaAuthDevice(int32_t osAccountId, int64_t authReqId, const char *authParams, in IpcGaAuthDevice() argument 1586 …tCallRequestParamInfo(callCtx, PARAM_TYPE_REQID, (const uint8_t *)(&authReqId), sizeof(authReqId)); in IpcGaAuthDevice()
|
/base/security/device_auth/interfaces/innerkits/ |
D | device_auth.h | 154 int32_t (*processData)(int64_t authReqId, const uint8_t *data, uint32_t dataLen, 156 int32_t (*authDevice)(int32_t osAccountId, int64_t authReqId, const char *authParams,
|
/base/security/device_auth/ |
D | README_zh.md | 124 …="p118111117133514"></a>int32_t AuthDevice(int32_t osAccountId, int64_t authReqId, const char *aut… 129 …11115352"></a><a name="p12534111115352"></a>int32_t ProcessData(int64_t authReqId, const uint8_t *…
|
D | README.md | 121 …17133514"></a><a name="p118111117133514"></a>int32_t AuthDevice(int64_t authReqId, const char *aut… 126 …11115352"></a><a name="p12534111115352"></a>int32_t ProcessData(int64_t authReqId, const uint8_t *…
|