Home
last modified time | relevance | path

Searched refs:outJson (Results 1 – 3 of 3) sorted by relevance

/base/security/device_auth/test/unittest/deviceauth/source/
Diso_auth_task_test.cpp78 CJson *outJson = CreateJson(); variable
79 EXPECT_NE(outJson, nullptr);
82 task = CreateIsoAuthClientTask(inJson, outJson, &info);
87 task = CreateIsoAuthClientTask(inJson, outJson, &info);
92 task = CreateIsoAuthClientTask(inJson, outJson, &info);
97 task = CreateIsoAuthClientTask(inJson, outJson, &info);
102 task = CreateIsoAuthClientTask(inJson, outJson, &info);
107 task = CreateIsoAuthClientTask(inJson, outJson, &info);
114 task = CreateIsoAuthClientTask(inJson, outJson, &info);
118 FreeJson(outJson);
[all …]
/base/security/device_auth/services/key_agree_sdk/src/
Dkey_agree_sdk.c61 CJson *outJson = CreateJson(); in BuildErrorMessage() local
62 if (outJson == NULL) { in BuildErrorMessage()
66 int32_t res = AddIntToJson(outJson, FIELD_SDK_ERROR_CODE, errorCode); in BuildErrorMessage()
69 FreeJson(outJson); in BuildErrorMessage()
72 char *returnStr = PackJsonToString(outJson); in BuildErrorMessage()
73 FreeJson(outJson); in BuildErrorMessage()
Dkey_agree_session.c486 static int32_t PackageMsgForPakeResponse(SpekeSession *spekeSession, CJson *outJson, PackageExtraDa… in PackageMsgForPakeResponse() argument
488 int32_t res = ConstructOutJson(outJson); in PackageMsgForPakeResponse()
493 CJson *payload = GetObjFromJson(outJson, FIELD_SDK_PAYLOAD); in PackageMsgForPakeResponse()
508 res = AddIntToJson(outJson, FIELD_SDK_ERROR_CODE, KEYAGREE_SUCCESS); in PackageMsgForPakeResponse()
513 res = AddVersionToJson(outJson, &(spekeSession->versionInfo.curVersion)); in PackageMsgForPakeResponse()
523 CJson *outJson = CreateJson(); in BuildAndPutOutMessage() local
524 if (outJson == NULL) { in BuildAndPutOutMessage()
528 int32_t res = PackageMsgForPakeResponse(spekeSession, outJson, packageExtraData); in BuildAndPutOutMessage()
531 FreeJson(outJson); in BuildAndPutOutMessage()
534 char *returnStr = PackJsonToString(outJson); in BuildAndPutOutMessage()
[all …]