Fixed policy response in /oic/res discovery
authorJongmin Choi <jminl.choi@samsung.com>
Tue, 28 Jun 2016 08:02:20 +0000 (17:02 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Wed, 29 Jun 2016 05:39:01 +0000 (05:39 +0000)
commitec2bcb63d5319f71409ba04e565b165c9c43525d
tree35eecdd3c0f8597c9c4ff72efd32661f26acb28f
parent7c223ebd30898bba71a6c0bbaf8fb40327bda8b0
Fixed policy response in /oic/res discovery

Added "sec": false to response in case of unsecure resource
Removed "port" information in case of unsecure resource

This patch is based on the Core Spec CR on resource policy.
If "sec" is false, it may or may not be included in /oic/res discovery response.
If "sec" is false, "port" shall be omitted in the response.
This patch should be used together with
Disable OC_SECURE flag in case of SECURED=0 build patch
(https://gerrit.iotivity.org/gerrit/#/c/8875/)

Change-Id: I8e0f3b39896c8856ab659f966e1227196e0f2153
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8987
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/stack/src/ocpayloadconvert.c