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>