[IOT-1463] Fix for getting and setting host address from secured OCResource object.
authorHarish Kumara Marappa <h.marappa@samsung.com>
Thu, 20 Oct 2016 09:26:47 +0000 (18:26 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 25 Oct 2016 06:36:21 +0000 (06:36 +0000)
commitae38269f723939c2e3c8c8a722185067bdb783d1
treefbe5c6090de99585405d04560345fc4e7acfe5cc
parent89236fab5e9104ea6a33b52d4d72e5d48d7ebe9d
[IOT-1463] Fix for getting and setting host address from secured OCResource object.

OCResource object was returning "coap+tcp" even if it is secured resource.
OCResource::setHost() fails to create OCDevAddr for host containing "coaps+tcp".

Change-Id: I2273d08b40e94f66fe95e339e876c2c316986c71
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13489
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/src/OCResource.cpp