[IOT-1463] Fix for getting and setting host address from secured OCResource object. 37/13637/3
authorHarish Kumara Marappa <h.marappa@samsung.com>
Thu, 20 Oct 2016 09:26:47 +0000 (18:26 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 26 Oct 2016 09:39:45 +0000 (09:39 +0000)
commit11374f1bd128edfae3b5578c196808e516b72f9e
tree2407b09afeba4d2f786e7a889c6f8e31e7efd835
parent0e9d6a272d1a14370667d1b63661cfab05978c71
[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>
(cherry picked from commit ae38269f723939c2e3c8c8a722185067bdb783d1)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13637
resource/src/OCResource.cpp