Fixed tinydtls bug in handshake failure
authorjs126.lee <js126.lee@samsung.com>
Thu, 7 Apr 2016 05:02:13 +0000 (14:02 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Thu, 7 Apr 2016 10:06:23 +0000 (10:06 +0000)
commit72647429900ee70e241e85fc58530c31ba23edc6
treee4c406882c3f756c287c99474c7f8faf77602ba3
parent2ccfba677941ada7bc3730538132182ce9fb872d
Fixed tinydtls bug in handshake failure

This patch is to fix bug of https://gerrit.iotivity.org/gerrit/#/c/7597/.

Issue : Double remove peer occur because removed peer in dtls_alert_send_from_err.

Patch 1,2: Call callback function in dtls_hadle_message when dtls handshake is failed.
         Destroy peer in case DLTS_CT_HANDSHAKE.
         Change checking peer point in handle_ccs
Patch 3,4: With patch 2, android-x86 build was failed. But, it is not related to this patch.
         So, adding just comment to re-start jenkins server.

Change-Id: Ie62ba1072dcbd2948d5931ed6fd606d540c650ba
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7651
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Kyungsun Cho <goodsun.cho@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
extlibs/tinydtls/dtls.c