Commit cd141746 authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko Committed by Mats Wichmann

[IOT-2961] save doxm section

add json2cbor save doxm section

Change-Id: I2578ebd8162978b489833edc7e6159b30cb851ec
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
(cherry picked from commit 2a46516c)
Origin: https://gerrit.iotivity.org/gerrit/#/c/23903/
parent 1bee9943
......@@ -926,6 +926,9 @@ OicSecDoxm_t *JSONToDoxmBin(const char *jsonStr)
jsonRoot = cJSON_Parse(jsonStr);
VERIFY_NOT_NULL(TAG, jsonRoot, ERROR);
jsonDoxm = cJSON_GetObjectItem(jsonRoot, OIC_JSON_DOXM_NAME);
VERIFY_NOT_NULL(TAG, jsonDoxm, ERROR);
//Oxm -- not Mandatory
jsonObj = cJSON_GetObjectItem(jsonDoxm, OIC_JSON_OXMS_NAME);
if (jsonObj && cJSON_Array == jsonObj->type)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment