From: Vitalii Irkha Date: Fri, 8 Nov 2019 10:38:35 +0000 (+0200) Subject: Replace API's for reverting all secure resources X-Git-Tag: accepted/tizen/unified/20191119.083949~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F217943%2F1;p=platform%2Fupstream%2Fiotivity.git Replace API's for reverting all secure resources Call ResetSecureResourceInPS() instead of RestoreDoxmToInitState() and RestorePstatToInitState() https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/599/commits/f8d712a5ee2cf1b58736fccb2cc168a93fc1c0c2 (cherry-picked from f8d712a5ee2cf1b58736fccb2cc168a93fc1c0c2) Change-Id: I7d26a94cdf76eba05959d378a2839cbd51512c87 Signed-off-by: Vitalii Irkha Signed-off-by: Sudipto Bal --- diff --git a/resource/csdk/security/src/credresource.c b/resource/csdk/security/src/credresource.c index 40aab22..e455f13 100644 --- a/resource/csdk/security/src/credresource.c +++ b/resource/csdk/security/src/credresource.c @@ -2035,8 +2035,7 @@ static OCEntityHandlerResult HandlePostRequest(OCEntityHandlerRequest * ehReques InvokeOtmEventHandler(ehRequest->devAddr.addr, ehRequest->devAddr.port, NULL, OIC_OTM_ERROR); #endif - RestoreDoxmToInitState(); - RestorePstatToInitState(); + ResetSecureResourceInPS(); OIC_LOG(WARNING, TAG, "DOXM will be reverted."); } }