Bug Fix in earlier rehandhsake implementation
authorSachin Agrawal <sachin.agrawal@intel.com>
Mon, 16 Feb 2015 06:19:03 +0000 (22:19 -0800)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Fri, 13 Mar 2015 21:31:49 +0000 (21:31 +0000)
commit77ab68301991cc9e9413f85190e1d73baae3748e
treeed5b13ffb9ae389318a40dbf2a61c20ef3385d40
parentfae865412d5a3c3b5e8d1d344e4e56701f289ddd
Bug Fix in earlier rehandhsake implementation

Identified a corner case in earlier rehandshake implementation where if
no data transfer takes place between client and Server before re-handshake
is issued, re-handshake process was failing. DTLS state machine does not
update it's state at Server until the first data packet was received from
client. Updated logic to detect for 're-handshake' situation when epoch
mis-match happens. Also updated dtls-client test app to conveniently test
the feature. Use 'client:rehandshake' command for testing.

Change-Id: Idfaad7d477508603c35ad7948ca7c8f05e3228d0
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/349
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
extlibs/tinydtls/0001-Bug-Fix-in-earlier-rehandhsake-implementation.patch [new file with mode: 0644]
extlibs/tinydtls/dtls.c
extlibs/tinydtls/tests/dtls-client.c