Commit 2840cb5f authored by Aleksey's avatar Aleksey Committed by Nathan Heldt-Sheller

[IOT-3220] Restore callbacks at reset

- Restore pkix, psk, identity callbacks at internal reset
- Revert [IOT-3140] related changes, since all callbacks now
  restored in SRMInitSecureResources for both reset cases

Change-Id: Ibc859c8ee26ae9f914859e27d5ea2b2491f03bf6
Signed-off-by: Aleksey's avatarAleksey Volkov <a.volkov@samsung.com>
parent 331ad178
......@@ -366,10 +366,6 @@ static bool EnterRESET(void)
// TODO [IOT-2633]:
VERIFY_SUCCESS(TAG, OC_STACK_OK == ResetSecureResources(), ERROR);
#if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
VERIFY_SUCCESS(TAG, CA_STATUS_OK == CAregisterPskCredentialsHandler(GetDtlsPskCredentials), ERROR);
#endif // __WITH_DTLS__ or __WITH_TLS__
// Set doxm.deviceuuid = Mfr Default (handled above)
// Set doxm.sct = Mfr Default ("")
// Set doxm.oxmsel = Mfr Default ("")
......
......@@ -687,7 +687,7 @@ OCStackResult ResetSecureResourceInPS(void)
}
SRMDeInitSecureResources();
InitSecureResources();
SRMInitSecureResources();
OIC_LOG(DEBUG, TAG, "ResetSecureResourceINPS OUT");
exit:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment