[IOT-3098] create Resource as OC_SECURE by default 87/26187/3
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 5 Jul 2018 23:14:30 +0000 (16:14 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 9 Jul 2018 20:25:18 +0000 (20:25 +0000)
commitde28e6c22ec10593d705aac43f12bd206a7ade45
tree7246d30ec0d97c8973ae3e2b7510af1d3a42f43c
parent2116f2d2d86ef45f7d5eca8074279c7c935c6b0d
[IOT-3098] create Resource as OC_SECURE by default

The current behavior of OCCreateResource() is to create an unsecure
Resource by default.  However it should be flipped, so that creating
an unsecure Resource requires explicit intention.  This may fix
IOT-3098, where several Resources are unsecure that should not be.

Change-Id: I35083f5e240ecbc6d1c731642b5c8124c5283712
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/stack/src/ocstack.c