/base/security/device_auth/test/unittest/deviceauth/source/ |
D | creds_manager_test.cpp | 100 (void)AddStringToJson(json, FIELD_USER_ID, TEST_SYM_USER_ID.c_str()); 101 (void)AddStringToJson(json, FIELD_DEVICE_ID, TEST_SYM_DEVICE_ID.c_str()); 102 (void)AddStringToJson(json, FIELD_AUTH_CODE, TEST_SYM_AUTH_CODE.c_str()); 125 (void)AddStringToJson(json, FIELD_USER_ID, TEST_SYM_USER_ID.c_str()); 130 (void)AddStringToJson(json, FIELD_DEVICE_ID, TEST_SYM_DEVICE_ID.c_str()); 134 (void)AddStringToJson(json, FIELD_AUTH_CODE, TEST_SYM_AUTH_CODE.c_str()); 168 (void)AddStringToJson(json, FIELD_USER_ID, TEST_SYM_USER_ID.c_str()); 169 (void)AddStringToJson(json, FIELD_DEVICE_ID, TEST_SYM_DEVICE_ID.c_str()); 170 (void)AddStringToJson(json, FIELD_AUTH_CODE, TEST_SYM_AUTH_CODE.c_str()); 174 (void)AddStringToJson(json, FIELD_USER_ID, TEST_SYM_USER_ID2.c_str()); [all …]
|
D | iso_auth_task_test.cpp | 95 (void)AddStringToJson(inJson, FIELD_SELF_USER_ID, TEST_USER_ID.c_str()); 100 (void)AddStringToJson(inJson, FIELD_SELF_DEV_ID, TEST_DEV_ID_EXCEED.c_str()); 105 (void)AddStringToJson(inJson, FIELD_SELF_DEV_ID, TEST_UDID.c_str()); 112 (void)AddStringToJson(inJson, FIELD_SELF_DEVICE_ID, TEST_AUTH_ID.c_str()); 220 (void)AddStringToJson(inJson, FIELD_SELF_USER_ID, TEST_USER_ID.c_str()); in CreateServerTask() 221 (void)AddStringToJson(inJson, FIELD_SELF_DEV_ID, TEST_UDID.c_str()); in CreateServerTask() 222 (void)AddStringToJson(inJson, FIELD_SELF_DEVICE_ID, TEST_AUTH_ID.c_str()); in CreateServerTask() 293 (void)AddStringToJson(in, FIELD_USER_ID, TEST_USER_ID.c_str()); 320 (void)AddStringToJson(in, FIELD_USER_ID, TEST_USER_ID.c_str()); 344 (void)AddStringToJson(in, FIELD_USER_ID, TEST_USER_ID.c_str()); [all …]
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
D | compatible_bind_sub_session_common.c | 29 if (AddStringToJson(session->params, FIELD_PIN_CODE, pinCode) != HC_SUCCESS) { in AddPinCode() 38 if (AddStringToJson(params, FIELD_GROUP_ID, groupId) != HC_SUCCESS) { in AddGroupId() 52 if (AddStringToJson(params, FIELD_GROUP_NAME, groupName) != HC_SUCCESS) { in AddGroupName() 62 …if ((groupOwner != NULL) && (AddStringToJson(params, FIELD_GROUP_OWNER, groupOwner) != HC_SUCCESS)… in AddGroupOwnerIfExist() 191 if (AddStringToJson(params, FIELD_AUTH_ID, authId) != HC_SUCCESS) { in AddAuthIdAndUserTypeIfValidOrDefault() 206 if (AddStringToJson(params, FIELD_CONN_DEVICE_ID, udid) != HC_SUCCESS) { in AddUdid() 251 if (AddStringToJson(params, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddGroupInfoToParams() 259 if (AddStringToJson(params, FIELD_GROUP_NAME, StringGet(&entry->name)) != HC_SUCCESS) { in AddGroupInfoToParams() 284 if (AddStringToJson(params, FIELD_AUTH_ID, StringGet(&devAuthParams->authId)) != HC_SUCCESS) { in AddDevInfoToParams() 288 …if (AddStringToJson(params, FIELD_CONN_DEVICE_ID, StringGet(&devAuthParams->udid)) != HC_SUCCESS) { in AddDevInfoToParams() [all …]
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgetregisterinfo_fuzzer/ |
D | devauthservgetregisterinfo_fuzzer.cpp | 27 AddStringToJson(json, FIELD_VERSION, "1"); in GenerateReqJson() 28 AddStringToJson(json, FIELD_DEVICE_ID, deviceId); in GenerateReqJson() 29 AddStringToJson(json, FIELD_USER_ID, "123"); in GenerateReqJson()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservaddmembertogroup_fuzzer/ |
D | devauthservaddmembertogroup_fuzzer.cpp | 71 AddStringToJson(json, FIELD_GROUP_ID, g_groupId); in GenerateAddMemberParamsJson() 72 AddStringToJson(json, FIELD_PIN_CODE, "123456"); in GenerateAddMemberParamsJson() 75 AddStringToJson(json, FIELD_CONNECT_PARAMS, connectParams); in GenerateAddMemberParamsJson() 88 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoAddMemberToGroup() 91 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoAddMemberToGroup()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgetgroupinfo_fuzzer/ |
D | devauthservgetgroupinfo_fuzzer.cpp | 71 AddStringToJson(json, FIELD_GROUP_ID, g_groupId); in GenerateReqJson() 72 AddStringToJson(json, FIELD_GROUP_NAME, appId); in GenerateReqJson() 73 AddStringToJson(json, FIELD_GROUP_OWNER, appId); in GenerateReqJson() 87 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoGetGroupInfo() 90 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoGetGroupInfo()
|
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/ |
D | creds_manager_test.cpp | 130 AddStringToJson(json, FIELD_PIN_CODE, TEST_PIN_CODE.c_str()); in OnBindRequest() 131 AddStringToJson(json, FIELD_DEVICE_ID, TEST_AUTH_ID2.c_str()); in OnBindRequest() 142 AddStringToJson(json, FIELD_PEER_CONN_DEVICE_ID, TEST_UDID_CLIENT.c_str()); in OnAuthRequest() 143 AddStringToJson(json, FIELD_SERVICE_PKG_NAME, TEST_APP_ID.c_str()); in OnAuthRequest() 378 AddStringToJson(json, FIELD_USER_ID, userId); in CreateDemoIdenticalAccountGroup() 403 (void)AddStringToJson(credJson, FIELD_AUTH_CODE, TEST_AUTH_CODE.c_str()); in CreateClientSymIdenticalAccountGroup() 406 AddStringToJson(json, FIELD_DEVICE_ID, TEST_AUTH_ID.c_str()); in CreateClientSymIdenticalAccountGroup() 407 AddStringToJson(json, FIELD_USER_ID, TEST_USER_ID.c_str()); in CreateClientSymIdenticalAccountGroup() 431 (void)AddStringToJson(credJson, FIELD_AUTH_CODE, TEST_AUTH_CODE.c_str()); in CreateServerSymIdenticalAccountGroup() 434 AddStringToJson(json, FIELD_DEVICE_ID, TEST_AUTH_ID2.c_str()); in CreateServerSymIdenticalAccountGroup() [all …]
|
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/ |
D | account_related_group_auth_dir_test.cpp | 61 int32_t ret = AddStringToJson(param, FIELD_USER_ID, "unit_test"); // For unit test. 148 (void)AddStringToJson(sendToPeer, "test_key", "test_value"); // For unit test. 182 (void)AddStringToJson(sendToPeer, "test_key", "test_value"); // For unit test. 217 (void)AddStringToJson(sendToPeer, "test_key", "test_value"); // For unit test. 251 (void)AddStringToJson(sendToPeer, "test_key", "test_value"); // For unit test. 261 (void)AddStringToJson(authParam, FIELD_PEER_CONN_DEVICE_ID, "CONN_DEVICE_ID"); // For unit test. 264 (void)AddStringToJson(authParam, FIELD_GROUP_ID, "GROUP_ID"); // For unit test. 282 (void)AddStringToJson(sendToSelf, FIELD_DEV_ID, "DEV_ID"); // For unit test. 286 (void)AddStringToJson(sendToSelf, FIELD_USER_ID, "USER_ID"); // For unit test. 343 … (void)AddStringToJson(paramsData, FIELD_PEER_CONN_DEVICE_ID, "CONN_DEVICE_ID"); // For unit test. [all …]
|
D | account_related_creds_manager_dir_test.cpp | 72 if (AddStringToJson(in, FIELD_USER_ID, "test_id") != HC_SUCCESS) { // For unit test. 148 if (AddStringToJson(in, FIELD_USER_ID, "userId")) { // For unit test. 154 if (AddStringToJson(in, FIELD_VERSION, "version")) { // For unit test. 182 if (AddStringToJson(in, FIELD_USER_ID, "user_id_test") != HC_SUCCESS) { // For unit test. 241 if (AddStringToJson(in, FIELD_USER_ID, "userId") != HC_SUCCESS) { // For unit test. 262 if (AddStringToJson(in, FIELD_USER_ID, "userId") != HC_SUCCESS) { // For unit test. 266 if (AddStringToJson(in, FIELD_VERSION, "version") != HC_SUCCESS) { // For unit test.
|
D | pake_v2_auth_task_test.cpp | 204 int32_t ret = AddStringToJson(in, FIELD_SELF_DEVICE_ID, "device_id_unit_test"); 216 int32_t ret = AddStringToJson(in, FIELD_SELF_DEVICE_ID, "device_id_unit_test"); 231 int32_t ret = AddStringToJson(in, FIELD_SELF_DEVICE_ID, "device_id_unit_test"); 235 ret = AddStringToJson(in, FIELD_SELF_USER_ID, "self_user_id_unit_test"); 248 int32_t ret = AddStringToJson(in, FIELD_SELF_DEVICE_ID, "device_id_unit_test"); 252 ret = AddStringToJson(in, FIELD_SELF_USER_ID, "self_user_id_unit_test"); 328 ret = AddStringToJson(in, FIELD_AUTH_PK_INFO, "auth_pk_info"); 424 ret = AddStringToJson(in, FIELD_DEVICE_ID, "device_id_unit_test"); 461 ret = AddStringToJson(in, FIELD_DEV_ID, "dev_id_unit_test");
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservaddmultimemberstogroup_fuzzer/ |
D | devauthservaddmultimemberstogroup_fuzzer.cpp | 71 AddStringToJson(json, FIELD_GROUP_ID, g_groupId); in GenerateAddMultiMemberParamsJson() 73 AddStringToJson(json, FIELD_PIN_CODE, "123456"); in GenerateAddMultiMemberParamsJson() 86 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoAddMultiMembersToGroup() 89 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoAddMultiMembersToGroup()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservdeletememberfromgroup_fuzzer/ |
D | devauthservdeletememberfromgroup_fuzzer.cpp | 71 AddStringToJson(json, FIELD_GROUP_ID, g_groupId); in GenerateDeleteMemberParamsJson() 72 AddStringToJson(json, FIELD_DELETE_ID, deleteId); in GenerateDeleteMemberParamsJson() 87 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoDeleteMemberFromGroup() 90 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoDeleteMemberFromGroup()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservdeletemultimembersfromgroup_fuzzer/ |
D | devauthservdeletemultimembersfromgroup_fuzzer.cpp | 71 AddStringToJson(json, FIELD_GROUP_ID, g_groupId); in GenerateDeleteMultiMembersParamsJson() 72 AddStringToJson(json, FIELD_DELETE_ID, deleteId); in GenerateDeleteMultiMembersParamsJson() 87 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoDeleteMultiMembersFromGroup() 90 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoDeleteMultiMembersFromGroup()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservauthdevice_fuzzer/ |
D | devauthservauthdevice_fuzzer.cpp | 73 AddStringToJson(json, FIELD_PEER_CONN_DEVICE_ID, deviceId); in GenerateAuthParamsJson() 74 AddStringToJson(json, FIELD_SERVICE_PKG_NAME, TEST_APP_NAME); in GenerateAuthParamsJson() 89 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoAuthDevice() 92 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoAuthDevice()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservdeletegroup_fuzzer/ |
D | devauthservdeletegroup_fuzzer.cpp | 79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoDeleteGroup() 82 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoDeleteGroup() 91 AddStringToJson(deleteParamsJson, FIELD_GROUP_ID, g_groupId); in FuzzDoDeleteGroup()
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/ |
D | account_unrelated_group_auth.c | 81 if (AddStringToJson(returnToSelf, FIELD_GROUP_ID, groupId) != HC_SUCCESS) { in AddGroupIdToSelfData() 95 if (AddStringToJson(returnToSelf, FIELD_PEER_CONN_DEVICE_ID, peerUdid) != HC_SUCCESS) { in AddPeerUdidToSelfData() 110 if (AddStringToJson(returnToSelf, FIELD_PEER_AUTH_ID, peerAuthId) != HC_SUCCESS) { in AddPeerAuthIdToSelfData() 276 if (AddStringToJson(paramsData, FIELD_SERVICE_PKG_NAME, ownerNameStr) != HC_SUCCESS) { in AddNonAccountPkgName() 281 …if (AddStringToJson(paramsData, FIELD_SERVICE_PKG_NAME, GROUP_MANAGER_PACKAGE_NAME) != HC_SUCCESS)… in AddNonAccountPkgName() 298 if (AddStringToJson(paramsData, FIELD_SELF_AUTH_ID, StringGet(&localAuthInfo->authId)) in AddNonAccountAuthInfo() 311 if (AddStringToJson(paramsData, FIELD_PEER_AUTH_ID, peerAuthId) != HC_SUCCESS) { in AddNonAccountAuthInfo() 374 if (AddStringToJson(dataFromClient, FIELD_SERVICE_PKG_NAME, pkgName) != HC_SUCCESS) { in CombineDasServerConfirmParams() 382 if (AddStringToJson(dataFromClient, FIELD_PEER_CONN_DEVICE_ID, peerUdid) != HC_SUCCESS) { in CombineDasServerConfirmParams() 389 if (AddStringToJson(dataFromClient, FIELD_PEER_ID_FROM_REQUEST, peerAuthId) != HC_SUCCESS) { in CombineDasServerConfirmParams()
|
/base/security/device_auth/services/session_manager/src/session/v2/ |
D | dev_session_util.c | 110 if (AddStringToJson(realPkInfoJson, FIELD_DEVICE_PK, devicePk) != HC_SUCCESS) { in BuildRealPkInfoJson() 114 if (AddStringToJson(realPkInfoJson, FIELD_USER_ID, userId) != HC_SUCCESS) { in BuildRealPkInfoJson() 118 if (AddStringToJson(realPkInfoJson, FIELD_DEVICE_ID, deviceId) != HC_SUCCESS) { in BuildRealPkInfoJson() 122 if (AddStringToJson(realPkInfoJson, FIELD_VERSION, version) != HC_SUCCESS) { in BuildRealPkInfoJson() 186 if (AddStringToJson(*peerInfoJson, FIELD_USER_ID, userId) != HC_SUCCESS) { in GeneratePeerInfoJson() 192 if (AddStringToJson(*peerInfoJson, FIELD_DEVICE_ID, devId) != HC_SUCCESS) { in GeneratePeerInfoJson() 236 if (AddStringToJson(context, FIELD_PEER_AUTH_ID, peerAuthId) != HC_SUCCESS) { in SetPeerAuthIdByDb() 339 if (AddStringToJson(context, FIELD_INDEX_KEY, userId) != HC_SUCCESS) { in SetPeerInfoToContext() 357 if (AddStringToJson(context, FIELD_REAL_INFO, peerInfoStr) != HC_SUCCESS) { in SetPeerInfoToContext() 490 if (AddStringToJson(pkInfoJson, FIELD_PSEUDONYM_ID, pdid) != HC_SUCCESS) { in AddPkInfoWithPdid() [all …]
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgetpkinfolist_fuzzer/ |
D | devauthservgetpkinfolist_fuzzer.cpp | 74 AddStringToJson(json, FIELD_UDID, localUdid); in GenerateReqJson() 87 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoGetPkInfoList() 90 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoGetPkInfoList()
|
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/ |
D | pake_v2_auth_client_task.c | 59 …GOTO_IF_ERR(AddStringToJson(sendToPeer, FIELD_USER_ID, (const char *)innerTask->params.userIdSelf)… in AsyAuthClientStepOne() 61 …GOTO_IF_ERR(AddStringToJson(sendToPeer, FIELD_DEVICE_ID, (const char *)innerTask->params.deviceIdS… in AsyAuthClientStepOne() 62 …GOTO_IF_ERR(AddStringToJson(sendToPeer, FIELD_DEV_ID, (const char *)innerTask->params.devIdSelf.va… in AsyAuthClientStepOne() 66 …GOTO_IF_ERR(AddStringToJson(data, FIELD_AUTH_PK_INFO, (const char *)innerTask->params.pkInfoSelf.v… in AsyAuthClientStepOne() 122 GOTO_ERR_AND_SET_RET(AddStringToJson(data, FIELD_DEVICE_ID, in PrepareAsyClientStepTwoData() 193 GOTO_IF_ERR(AddStringToJson(sendToSelf, FIELD_USER_ID, (const char *)task->params.userIdPeer)); in SendFinalToOut() 196 …GOTO_IF_ERR(AddStringToJson(sendToSelf, FIELD_DEVICE_ID, (const char *)task->params.deviceIdSelf.v… in SendFinalToOut() 197 … GOTO_IF_ERR(AddStringToJson(sendToSelf, FIELD_DEV_ID, (const char *)task->params.devIdPeer.val)); in SendFinalToOut()
|
D | pake_v2_auth_server_task.c | 90 GOTO_ERR_AND_SET_RET(AddStringToJson(sendToPeer, FIELD_USER_ID, in PrepareAsyServerStepOneData() 93 GOTO_ERR_AND_SET_RET(AddStringToJson(sendToPeer, FIELD_DEVICE_ID, in PrepareAsyServerStepOneData() 96 …GOTO_ERR_AND_SET_RET(AddStringToJson(sendToPeer, FIELD_DEV_ID, (const char *)innerTask->params.dev… in PrepareAsyServerStepOneData() 99 GOTO_ERR_AND_SET_RET(AddStringToJson(data, FIELD_AUTH_PK_INFO, in PrepareAsyServerStepOneData() 184 GOTO_IF_ERR(AddStringToJson(sendToSelf, FIELD_USER_ID, (const char *)task->params.userIdPeer)); in SendFinalToOut() 187 …GOTO_IF_ERR(AddStringToJson(sendToSelf, FIELD_DEVICE_ID, (const char *)task->params.deviceIdSelf.v… in SendFinalToOut() 188 … GOTO_IF_ERR(AddStringToJson(sendToSelf, FIELD_DEV_ID, (const char *)task->params.devIdPeer.val)); in SendFinalToOut()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservcreategroup_fuzzer/ |
D | devauthservcreategroup_fuzzer.cpp | 79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoCreateGroup() 82 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoCreateGroup()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservisdeviceingroup_fuzzer/ |
D | devauthservisdeviceingroup_fuzzer.cpp | 79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoIsDeviceInGroup() 82 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoIsDeviceInGroup()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservcheckaccesstogroup_fuzzer/ |
D | devauthservcheckaccesstogroup_fuzzer.cpp | 79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoCheckAccessToGroup() 82 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoCheckAccessToGroup()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgettrusteddevices_fuzzer/ |
D | devauthservgettrusteddevices_fuzzer.cpp | 79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoGetTrustedDevices() 82 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoGetTrustedDevices()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgetgroupinfobyid_fuzzer/ |
D | devauthservgetgroupinfobyid_fuzzer.cpp | 79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoGetGroupInfoById() 82 AddStringToJson(createJson, FIELD_DEVICE_ID, localUdid); in FuzzDoGetGroupInfoById()
|