Add a logic to filter a OT/MOT case which should return a failure
authorJihun Ha <jihun.ha@samsung.com>
Mon, 23 Jan 2017 09:33:01 +0000 (18:33 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 24 Jan 2017 07:17:35 +0000 (07:17 +0000)
commitbc9e1f1bf4371680697dc008b1eb22044c543dd3
treeb11efc8370c4fd04c37601c0a0b4bb38c616a5c6
parent6e7a3d2eb8540fbe1a2433b7e7dd6954aee6a101
Add a logic to filter a OT/MOT case which should return a failure

It should return an ES_OWNERSHIP_IS_NOT_SYNCHRONIZED error under the below
condition:
 - An ownership information is stored in a mediator PDM DB
 - The found enrollee is an owned state but owned by other mediator

Additionally, add getOwnerID API to get a device owner id if an enrollee is owned

Change-Id: Iafabaf5731babad152f2b155007c6299b79af53c
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16685
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Heewon Park <h_w.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/inc/escommon.h
service/easy-setup/mediator/richsdk/inc/ESRichCommon.h
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.h
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/mediator.cpp