Add an additional callback in security provisioning of easy setup
authorJihun Ha <jihun.ha@samsung.com>
Fri, 9 Dec 2016 06:08:54 +0000 (15:08 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 14 Dec 2016 05:39:07 +0000 (05:39 +0000)
commit1e16e1da801bd8b623624eca65f8eadd13227f6b
treeba381e84434dade8ebb997e4e97240ea9ba30186
parentfecab32dac73ec46606c39779d520c46c1f71c7d
Add an additional callback in security provisioning of easy setup
after secure resource is discovered.

Right after a target secure resource is discovered, Mediator may need to
confirm which ownership tranfer method is used or set a pre-configured pin
number for MOT use case.
For that, it adds an additional ESResult, ES_SECURE_RESOURCE_IS_DISCOVERED,
which indicates the event. And if some user inputs are needed, user can
pass its inputs as a form of ESOwnershipTransferData object which can store
an ownership transfer method to be used and pre-configured pin to be used
for a MOT case.

Note that, related APIs for MOT was merged
: https://gerrit.iotivity.org/gerrit/#/c/14221/

Change-Id: Ic17f50693a6c4073eb5208da861506230f817f0e
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15161
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 80884027f52113cdeb2673877d2a3d338630e371)
Reviewed-on: https://gerrit.iotivity.org/gerrit/15467
service/easy-setup/inc/escommon.h
service/easy-setup/mediator/richsdk/inc/ESRichCommon.h
service/easy-setup/mediator/richsdk/inc/RemoteEnrollee.h
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.h
service/easy-setup/mediator/richsdk/src/RemoteEnrollee.cpp
service/easy-setup/sampleapp/enrollee/linux/oic_svr_db_server.dat
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/SConscript
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/mediator.cpp [moved from service/easy-setup/sampleapp/mediator/linux/richsdk_sample/mediator_cpp.cpp with 90% similarity]
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/oic_svr_db_subclient.dat [new file with mode: 0644]
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/submediator.cpp [new file with mode: 0755]