Enable complete SVR DB reset on OTM error.
Recently, only pstat and doxm resources has been reset.
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/552
(cherry-picked from
8c20c75f22a5e81c9c7814eaf18e5f7c73aca7b6)
Change-Id: I18a7a2accd82c51a57e14cd65b91431d5b5b84eb
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@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.");
}
}