[IOT-2820] make /pstat.dos.p read-only 95/22895/3
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Wed, 18 Oct 2017 05:59:59 +0000 (22:59 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 19 Oct 2017 16:47:15 +0000 (16:47 +0000)
commit6da31dd4a2872f623ed8137cce51b6d8aa6e27ee
treecedef2cec46a358aab815fce68600bf2552adc7d
parent7dbf81fe0c41510f68507d7611e298b085ef1db2
[IOT-2820] make /pstat.dos.p read-only

The Parameter "p" in the /pstat "dos" Property is meant
to be read-only in every Device Onboarding State.  This
fixes the Update handler to treat "p" as read-only.  It
also fixes the pstat->CBOR marshaling code to provide the
option to omit "p". And it updates the provisioningclient
code to omit "p" from Updates to /pstat.

Change-Id: I25a92bd33e5476d7d5896021e42102762deb6c31
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/include/internal/pstatresource.h
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/provisioning/src/secureresourceprovider.c
resource/csdk/security/src/pstatresource.c
resource/csdk/security/unittest/pstatresource.cpp