Throw exception for errors in EnrolleeSecurity::performOwnershipTransfer() 73/211873/3
authorSenthil Kumar G S <senthil.gs@samsung.com>
Tue, 30 Jul 2019 10:40:46 +0000 (16:10 +0530)
committerSudipto Bal <sudipto.bal@samsung.com>
Fri, 9 Aug 2019 12:45:07 +0000 (12:45 +0000)
commitf3ec17e1cfb8035fb716da8153f257ff8251c0ef
treeaaebfaecde8a71c619cb3feb59ee5e25ac49c077
parent030ddb9a13a5589a5066b35b1a5b7b1e09b0f99f
Throw exception for errors in EnrolleeSecurity::performOwnershipTransfer()

Current:
Returning ES_ERROR for all error cases doesn't let the caller know what went wrong,

Proposed:
Throw ESPlatformException with the actual OCStackResult for all error cases.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/551/commits/d7bf5d91b812d1cd3a62ab7d51e33d8101cf27a7
(cherry-picked from d7bf5d91b812d1cd3a62ab7d51e33d8101cf27a7)

Change-Id: I4b8f39a4dc749f2393908a02df68df251fded24c
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp