Pstat payload conversion from JSON to CBOR
authorHabib Virji <habib.virji@samsung.com>
Thu, 18 Feb 2016 15:24:29 +0000 (15:24 +0000)
committerHabib Virji <habib.virji@samsung.com>
Sat, 12 Mar 2016 18:02:56 +0000 (18:02 +0000)
commit172aa5cd0babea8218de011a41d0cc203b8dcccf
treedd212a908e74fb4584f92cbec50f121ae17e6402
parentdff2466e2473e5a92b30e5ee64bbd0f6a2e3f7a3
Pstat payload conversion from JSON to CBOR

Converts Pstat payload conversion from JSON to CBOR directly using tinycbor library.

- Pstat unit test is updated to match new changes.
- Fixes bug in psinterface to move to the next element.
- ocpayloadparse.c, is updated to include bytestring or cjson depending on the message contents.
- Pstat format: {"isop": <0/1>, "deviceid":<bytestring>, "ch": <int>, "cm": <int>, "om": <int>, "tm": <int>, sm:[<int>, <int>] }.
- Persistant storage format: { "acl": <aclcbor>, "pstat": <pstatcbor> }

Change-Id: I29a92bbf0f24d82612b8795b86119863c4a1905b
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5045
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5775
resource/csdk/security/include/internal/pstatresource.h
resource/csdk/security/include/internal/security_internals.h
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/src/psinterface.c
resource/csdk/security/src/pstatresource.c
resource/csdk/security/unittest/pstatresource.cpp
resource/csdk/stack/src/ocpayloadparse.c