IOT-2258: Allow secure and nonsecure endpoints with OCCreateResource.
authorTodd Malsbary <todd.malsbary@intel.com>
Wed, 17 May 2017 18:56:13 +0000 (11:56 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Sat, 20 May 2017 00:56:13 +0000 (00:56 +0000)
commit7511dbf830740a91564042335450934c0278bc5e
treedba5de6484958b4d2781430ca378ff681dbc95f0
parentdb2361bad1e029db5b702691dc267b374963ec41
IOT-2258: Allow secure and nonsecure endpoints with OCCreateResource.

Added new property flag OC_NONSECURE.  To specify both secure and
nonsecure endpoints use OC_SECURE | OC_NONSECURE.  The behavior when
neither flag is specified is OC_NONSECURE, the same as before this
change.

Bug: https://jira.iotivity.org/browse/IOT-2258
Change-Id: I12ffdff70a83455eff46d4464e234963063c4f35
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19995
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/include/octypes.h
resource/csdk/resource-directory/src/rd_client.c
resource/csdk/security/src/doxmresource.c
resource/csdk/stack/src/ocpayload.c
resource/csdk/stack/src/ocstack.c
resource/csdk/stack/test/stacktests.cpp