Searched refs:JsonHandle (Results 1 – 9 of 9) sorted by relevance
/base/security/device_security_level/baselib/utils/include/ |
D | utils_json.h | 26 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/ |
D | utils_json.c | 26 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/ |
D | dslm_msg_utils.c | 38 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/ |
D | dslm_ohos_verify.c | 70 JsonHandle json = CreateJson(jsonBuffer); in ParseNonceOfCertChain() 128 JsonHandle jsonA = CreateJson(bufferA); in FindCommonPkInfo() 132 JsonHandle jsonB = CreateJson(bufferB); in FindCommonPkInfo()
|
D | dslm_ohos_request.c | 40 JsonHandle json = CreateJson(NULL); in TransToJsonStr()
|
D | external_interface_adapter.c | 228 JsonHandle json = CreateJson(NULL); in GenerateFuncParamJson()
|
/base/security/device_security_level/oem_property/common/ |
D | dslm_credential_utils.c | 353 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/ |
D | dslm_msg_serialize.c | 66 JsonHandle handle = CreateJson((const char *)buff->buff); in ParseMessage()
|
/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_baselib_utils_test.cpp | 361 JsonHandle handle = CreateJson(str); 407 JsonHandle handle = CreateJson(str); 426 JsonHandle handle = CreateJson(str);
|