projects
/
platform
/
upstream
/
iotivity.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37f3677
)
Fix OTM issue during DTLS handshake
86/217886/1
author
Vitalii Irkha
<v.irkha@samsung.com>
Thu, 31 Oct 2019 11:29:02 +0000
(13:29 +0200)
committer
Sudipto Bal
<sudipto.bal@samsung.com>
Fri, 15 Nov 2019 07:50:36 +0000
(16:50 +0900)
Revert all secure resources after DTLS handshake error
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/592/commits/
ba8ed7dda2f9516ed446a65b877f26a506567491
(cherry-picked from
ba8ed7dda2f9516ed446a65b877f26a506567491
)
Change-Id: I3a94587fe5a31f5c6f889c74cbbb4ea0a293fbf6
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
resource/csdk/security/src/srmutility.c
patch
|
blob
|
history
diff --git
a/resource/csdk/security/src/srmutility.c
b/resource/csdk/security/src/srmutility.c
index
1b8cd21
..
950e6bb
100644
(file)
--- a/
resource/csdk/security/src/srmutility.c
+++ b/
resource/csdk/security/src/srmutility.c
@@
-320,9
+320,8
@@
static void DTLSHandshakeServerCB(const CAEndpoint_t *endpoint, const CAErrorInf
if (CA_STATUS_OK != info->result)
{
OIC_LOG(ERROR, TAG, "Failed to establish a secure session with owner device.");
- OIC_LOG(ERROR, TAG, "Doxm/Pstat resource will be reverted to init state.");
- RestoreDoxmToInitState();
- RestorePstatToInitState();
+ ResetSecureResourceInPS();
+ OIC_LOG(INFO, TAG, "Secure Resources reverted.");
InvokeOtmEventHandler(endpoint->addr, endpoint->port, NULL, OIC_OTM_ERROR);
}
}