[IOT-1520] Allow MOT to be disabled after it is enabled.
authorAlex Kelley <alexke@microsoft.com>
Tue, 21 Mar 2017 21:54:23 +0000 (14:54 -0700)
committerGreg Zaverucha <gregz@microsoft.com>
Fri, 24 Mar 2017 23:52:14 +0000 (23:52 +0000)
commit60c128f7535c41cfcffc529391c7afdbf3280fb1
treede79ddf0b71b4afe94560aa0cd6d296f732b2909
parentb8013a000c8123330583e6cee02395f0b832f09d
[IOT-1520] Allow MOT to be disabled after it is enabled.

These changes do the following:
1. Fix updateWriteableProperty to honor the 'mom'
   property any time that it is changed.
2. Rename updateWriteableProperty to
   DoxmUpdateWriteableProperty to clarify its usage.
3. Fix an invalid check in the ProvisioningClient.
4. Added tests to ensure that mom can be enabled
   and disabled when MOT is available.

Change-Id: I97c01a9dc8f44bcf5a6aeac3bf459777c97e19b0
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18109
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Pawel Winogrodzki <pawelwi@microsoft.com>
Reviewed-by: Greg Zaverucha <gregz@microsoft.com>
resource/csdk/security/include/internal/doxmresource.h
resource/csdk/security/include/securevirtualresourcetypes.h
resource/csdk/security/provisioning/sample/provisioningclient.c
resource/csdk/security/src/doxmresource.c
resource/csdk/security/unittest/doxmresource.cpp