Home
last modified time | relevance | path

Searched refs:JsonHandle (Results 1 – 9 of 9) sorted by relevance

/base/security/device_security_level/baselib/utils/include/
Dutils_json.h26 typedef void *JsonHandle; typedef
28 JsonHandle CreateJson(const char *data);
29 void DestroyJson(JsonHandle handle);
31 int32_t GetJsonFieldInt(JsonHandle handle, const char *field);
32 uint32_t GetJsonFieldIntArray(JsonHandle handle, const char *field, int32_t *array, int32_t arrayLe…
33 const char *GetJsonFieldString(JsonHandle handle, const char *field);
34 JsonHandle GetJsonFieldJson(JsonHandle handle, const char *field);
36 JsonHandle GetJsonFieldJsonArray(JsonHandle handle, uint32_t num);
37 int32_t GetJsonFieldJsonArraySize(JsonHandle handle);
39 void AddFieldIntToJson(JsonHandle handle, const char *field, int32_t value);
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_json.c26 JsonHandle CreateJson(const char *data) in CreateJson()
38 void DestroyJson(JsonHandle handle) in DestroyJson()
45 int32_t GetJsonFieldInt(JsonHandle handle, const char *field) in GetJsonFieldInt()
73 uint32_t GetJsonFieldIntArray(JsonHandle handle, const char *field, int32_t *array, int32_t arrayLe… in GetJsonFieldIntArray()
103 void AddFieldBoolToJson(JsonHandle handle, const char *field, bool value) in AddFieldBoolToJson()
111 const char *GetJsonFieldString(JsonHandle handle, const char *field) in GetJsonFieldString()
135 JsonHandle GetJsonFieldJson(JsonHandle handle, const char *field) in GetJsonFieldJson()
140 JsonHandle GetJsonFieldJsonArray(JsonHandle handle, uint32_t num) in GetJsonFieldJsonArray()
145 int32_t GetJsonFieldJsonArraySize(JsonHandle handle) in GetJsonFieldJsonArraySize()
150 void AddFieldIntToJson(JsonHandle handle, const char *field, int32_t value) in AddFieldIntToJson()
[all …]
/base/security/device_security_level/services/dslm/
Ddslm_msg_utils.c38 JsonHandle head = CreateJson(NULL); in GenerateSecInfoResponseJson()
43 JsonHandle body = CreateJson(NULL); in GenerateSecInfoResponseJson()
82 JsonHandle head = CreateJson(NULL); in GenerateSecInfoRequestJson()
86 JsonHandle body = CreateJson(NULL); in GenerateSecInfoRequestJson()
149 JsonHandle handle = CreateJson((const char *)msg->buff); in ParseDeviceSecInfoRequest()
205 JsonHandle handle = CreateJson((const char *)msg->buff); in ParseDeviceSecInfoResponse()
/base/security/device_security_level/oem_property/ohos/common/
Ddslm_ohos_verify.c70 JsonHandle json = CreateJson(jsonBuffer); in ParseNonceOfCertChain()
128 JsonHandle jsonA = CreateJson(bufferA); in FindCommonPkInfo()
132 JsonHandle jsonB = CreateJson(bufferB); in FindCommonPkInfo()
Ddslm_ohos_request.c40 JsonHandle json = CreateJson(NULL); in TransToJsonStr()
Dexternal_interface_adapter.c228 JsonHandle json = CreateJson(NULL); in GenerateFuncParamJson()
/base/security/device_security_level/oem_property/common/
Ddslm_credential_utils.c353 static bool ParsePublicKeyAttestation(JsonHandle json, uint32_t attestationIndex, PublicKeyAttestat… in ParsePublicKeyAttestation()
360 JsonHandle item = GetJsonFieldJsonArray(json, attestationIndex); in ParsePublicKeyAttestation()
402 JsonHandle json = NULL; in SplitCredentialAttestationList()
467 static int32_t GetDataFromJson(JsonHandle json, const char *paramKey, char *dest, uint32_t destLen) in GetDataFromJson()
496 JsonHandle json = CreateJson((char *)buffer); in CredentialCbToDslmCredInfo()
/base/security/device_security_level/services/common/
Ddslm_msg_serialize.c66 JsonHandle handle = CreateJson((const char *)buff->buff); in ParseMessage()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_baselib_utils_test.cpp361 JsonHandle handle = CreateJson(str);
407 JsonHandle handle = CreateJson(str);
426 JsonHandle handle = CreateJson(str);