[IOT-1958] CR 22 State Specific Property Access for /pstat Resource 89/18989/9
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Sun, 16 Apr 2017 06:57:57 +0000 (23:57 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Fri, 21 Apr 2017 21:43:37 +0000 (21:43 +0000)
commit3f184aa8c408c44bf2db526f4c7acd737e004778
tree3eb00270f90cf5ee41630ae25c7560f32959ba85
parent72e1ab0da3a9ce08e5423b64cb793b3b57493587
[IOT-1958] CR 22 State Specific Property Access for /pstat Resource

Implementation of CR 22 feature to deny UPDATE to /pstat if any
Property in the POST representation is read-only in the current
/pstat.dos.s state.

Includes necessary update to the CBOR marshalling code to support
partial Resource representations for /pstat.

Includes updates to provisioning tools to correctly include only the
/pstat Properties being updated in the POST payload.

This same change must be implemented for each SVR.

- patch set 2&3: rebased
- patch set 4: fixed a few comments and trigger jenkins
- patch set 5&6: rebased
- patch set 7: addressed Greg's review comments

Change-Id: Ie86fcc1edf4b2370ffcb755c78f1289252dcb516
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18989
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
resource/csdk/security/include/internal/pstatresource.h
resource/csdk/security/include/securevirtualresourcetypes.h
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/provisioning/src/secureresourceprovider.c
resource/csdk/security/src/pstatresource.c
resource/csdk/security/tool/json2cbor.c
resource/csdk/security/unittest/pstatresource.cpp