Home
last modified time | relevance | path

Searched refs:returnData (Results 1 – 17 of 17) sorted by relevance

/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session_util.c24 static int32_t AddPinCode(const CJson *returnData, CJson *jsonParams) in AddPinCode() argument
26 const char *pinCode = GetStringFromJson(returnData, FIELD_PIN_CODE); in AddPinCode()
38 static int32_t AddAuthIdIfExist(const CJson *returnData, CJson *jsonParams) in AddAuthIdIfExist() argument
40 const char *authId = GetStringFromJson(returnData, FIELD_DEVICE_ID); in AddAuthIdIfExist()
48 static int32_t AddUserTypeIfExistAndValid(const CJson *returnData, CJson *jsonParams) in AddUserTypeIfExistAndValid() argument
51 if (GetIntFromJson(returnData, FIELD_USER_TYPE, &userType) == HC_SUCCESS) { in AddUserTypeIfExistAndValid()
64 static int32_t AddGroupVisibilityIfExistAndValid(const CJson *returnData, CJson *jsonParams) in AddGroupVisibilityIfExistAndValid() argument
67 if (GetIntFromJson(returnData, FIELD_GROUP_VISIBILITY, &groupVisibility) == HC_SUCCESS) { in AddGroupVisibilityIfExistAndValid()
80 static int32_t AddExpireTimeIfExistAndValid(const CJson *returnData, CJson *jsonParams) in AddExpireTimeIfExistAndValid() argument
83 if (GetIntFromJson(returnData, FIELD_EXPIRE_TIME, &expireTime) == HC_SUCCESS) { in AddExpireTimeIfExistAndValid()
[all …]
/base/security/device_auth/test/unittest/deviceauth/source/
Ddevice_auth_ipc_test.cpp665 char *returnData = nullptr; variable
667 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, nullptr, TEST_QUERY_PARAMS, &returnData, &retu…
675 char *returnData = nullptr; variable
677 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, nullptr, &returnData, &returnNum);
694 char *returnData = nullptr; variable
695 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, TEST_QUERY_PARAMS, &returnData, n…
703 char *returnData = nullptr; variable
707 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, queryParams, &returnData, &return…
709 ASSERT_NE(returnData, nullptr);
711 gm->destroyInfo(&returnData);
[all …]
Ddeviceauth_standard_test.cpp335 char *returnData = nullptr; in CreateDemoIdenticalAccountGroup() local
336 int32_t ret = gm->getRegisterInfo(GET_REGISTER_INFO_PARAMS, &returnData); in CreateDemoIdenticalAccountGroup()
338 ASSERT_NE(returnData, nullptr); in CreateDemoIdenticalAccountGroup()
339 string registerInfo(returnData); in CreateDemoIdenticalAccountGroup()
350 gm->destroyInfo(&returnData); in CreateDemoIdenticalAccountGroup()
1371 char *returnData = nullptr; variable
1373 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, nullptr, TEST_QUERY_PARAMS, &returnData, &retu…
1381 char *returnData = nullptr; variable
1383 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, TEST_APP_ID, nullptr, &returnData, &returnNum);
1400 char *returnData = nullptr; variable
[all …]
/base/security/device_auth/services/session_manager/src/session/
Ddev_session_fwk.c419 CJson *returnData = CreateJson(); in GetSessionReturnData() local
420 if (returnData == NULL) { in GetSessionReturnData()
427 FreeJson(returnData); in GetSessionReturnData()
430 if (AddStringToJson(returnData, FIELD_GROUP_ID, groupId) != HC_SUCCESS) { in GetSessionReturnData()
432 FreeJson(returnData); in GetSessionReturnData()
435 char *returnDataStr = PackJsonToString(returnData); in GetSessionReturnData()
436 FreeJson(returnData); in GetSessionReturnData()
447 char *returnData = GetSessionReturnData(impl); in OnDevSessionFinish() local
448 ProcessFinishCallback(impl->base.id, impl->base.opCode, returnData, &impl->base.callback); in OnDevSessionFinish()
449 FreeJsonString(returnData); in OnDevSessionFinish()
/base/security/device_auth/services/group_manager/src/callback_manager/
Dcallback_manager.c121 void ProcessFinishCallback(int64_t reqId, int operationCode, const char *returnData, in ProcessFinishCallback() argument
126 callback->onFinish(reqId, operationCode, returnData); in ProcessFinishCallback()
150 char *returnData = callback->onRequest(reqId, operationCode, reqParams); in ProcessRequestCallback() local
152 return returnData; in ProcessRequestCallback()
/base/security/device_auth/services/session_manager/inc/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session_util.h27 int32_t CombineConfirmData(int operationCode, const CJson *returnData, CJson *jsonParams);
/base/security/device_auth/services/group_manager/inc/callback_manager/
Dcallback_manager.h28 void ProcessFinishCallback(int64_t reqId, int operationCode, const char *returnData,
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
Dsm2_asy_key_generator_openssl.c207 unsigned char *returnData = NULL; in GetSm2PubKeyEncoded() local
208 int returnDataLen = Openssl_i2d_EC_PUBKEY(impl->ecKey, &returnData); in GetSm2PubKeyEncoded()
214 returnBlob->data = returnData; in GetSm2PubKeyEncoded()
241 unsigned char *returnData = NULL; in GetSm2PriKeyEncoded() local
242 int returnDataLen = Openssl_i2d_ECPrivateKey(impl->ecKey, &returnData); in GetSm2PriKeyEncoded()
248 returnBlob->data = returnData; in GetSm2PriKeyEncoded()
Ddsa_asy_key_generator_openssl.c176 unsigned char *returnData = NULL; in GetDsaPubKeyEncoded() local
177 int len = Openssl_i2d_DSA_PUBKEY(impl->pk, &returnData); in GetDsaPubKeyEncoded()
183 returnBlob->data = returnData; in GetDsaPubKeyEncoded()
198 unsigned char *returnData = NULL; in GetDsaPriKeyEncoded() local
199 int len = Openssl_i2d_DSAPrivateKey(impl->sk, &returnData); in GetDsaPriKeyEncoded()
205 returnBlob->data = returnData; in GetDsaPriKeyEncoded()
Decc_asy_key_generator_openssl.c736 unsigned char *returnData = NULL; in GetEccPubKeyEncoded() local
738 int returnDataLen = Openssl_i2d_EC_PUBKEY(impl->ecKey, &returnData); in GetEccPubKeyEncoded()
746 returnBlob->data = returnData; in GetEccPubKeyEncoded()
772 unsigned char *returnData = NULL; in GetEccPriKeyEncoded() local
773 int returnDataLen = Openssl_i2d_ECPrivateKey(impl->ecKey, &returnData); in GetEccPriKeyEncoded()
780 returnBlob->data = returnData; in GetEccPriKeyEncoded()
/base/security/device_auth/frameworks/src/lite/
Dipc_adapt.c769 static void GaCbOnFinishWithType(int64_t requestId, int32_t operationCode, const char *returnData, … in GaCbOnFinishWithType() argument
790 if (returnData != NULL) { in GaCbOnFinishWithType()
791 …eCallData(dataParcel, PARAM_TYPE_COMM_DATA, (const uint8_t *)(returnData), strlen(returnData) + 1); in GaCbOnFinishWithType()
808 static void IpcGaCbOnFinish(int64_t requestId, int32_t operationCode, const char *returnData) in IpcGaCbOnFinish() argument
810 GaCbOnFinishWithType(requestId, operationCode, returnData, CB_TYPE_DEV_AUTH); in IpcGaCbOnFinish()
814 static void TmpIpcGaCbOnFinish(int64_t requestId, int32_t operationCode, const char *returnData) in TmpIpcGaCbOnFinish() argument
816 GaCbOnFinishWithType(requestId, operationCode, returnData, CB_TYPE_TMP_DEV_AUTH); in TmpIpcGaCbOnFinish()
/base/security/device_auth/frameworks/src/standard/
Dipc_adapt.cpp751 static void GaCbOnFinishWithType(int64_t requestId, int32_t operationCode, const char *returnData, … in GaCbOnFinishWithType() argument
768 if (returnData != nullptr) { in GaCbOnFinishWithType()
770 reinterpret_cast<const uint8_t *>(returnData), strlen(returnData) + 1); in GaCbOnFinishWithType()
784 static void IpcGaCbOnFinish(int64_t requestId, int32_t operationCode, const char *returnData) in IpcGaCbOnFinish() argument
786 GaCbOnFinishWithType(requestId, operationCode, returnData, CB_TYPE_DEV_AUTH); in IpcGaCbOnFinish()
790 static void TmpIpcGaCbOnFinish(int64_t requestId, int32_t operationCode, const char *returnData) in TmpIpcGaCbOnFinish() argument
792 GaCbOnFinishWithType(requestId, operationCode, returnData, CB_TYPE_TMP_DEV_AUTH); in TmpIpcGaCbOnFinish()
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth.h196 void (*onFinish)(int64_t requestId, int operationCode, const char *returnData);
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Daccount_related_group_auth_dir_test.cpp94 static void OnFinish(int64_t requestId, int operationCode, const char *returnData) in OnFinish() argument
98 (void)returnData; in OnFinish()
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/
Dcreds_manager_test.cpp368 char *returnData = nullptr; in CreateDemoIdenticalAccountGroup() local
369 int32_t ret = gm->getRegisterInfo(registerInfoParams, &returnData); in CreateDemoIdenticalAccountGroup()
371 ASSERT_NE(returnData, nullptr); in CreateDemoIdenticalAccountGroup()
372 string registerInfo(returnData); in CreateDemoIdenticalAccountGroup()
383 gm->destroyInfo(&returnData); in CreateDemoIdenticalAccountGroup()
457 char *returnData = nullptr; in GetAddMultiParams() local
458 int32_t ret = gm->getRegisterInfo(registerInfoParams, &returnData); in GetAddMultiParams()
462 string registerInfo(returnData); in GetAddMultiParams()
464 gm->destroyInfo(&returnData); in GetAddMultiParams()
/base/security/device_auth/frameworks/src/
Dipc_sdk.c769 static int32_t ParseReturnResult(const IpcDataInfo *replies, int32_t cacheNum, char **returnData, u… in ParseReturnResult() argument
779 GetIpcReplyByType(replies, cacheNum, PARAM_TYPE_RETURN_DATA, (uint8_t *)returnData, NULL); in ParseReturnResult()
780 if (*returnData == NULL) { in ParseReturnResult()
783 *returnData = strdup(*returnData); in ParseReturnResult()
784 if (*returnData == NULL) { in ParseReturnResult()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_verify.cpp223 HcfBlob **returnData, HcfBlob **returnSignatureData) in GetDataBlobAndSignatureFromInput() argument
244 *returnData = data; in GetDataBlobAndSignatureFromInput()