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 <v.irkha@samsung.com>
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
InvokeOtmEventHandler(ehRequest->devAddr.addr, ehRequest->devAddr.port,
NULL, OIC_OTM_ERROR);
#endif
- RestoreDoxmToInitState();
- RestorePstatToInitState();
+ ResetSecureResourceInPS();
OIC_LOG(WARNING, TAG, "DOXM will be reverted.");
}
}