Commit f46b12b2 authored by Chul Lee's avatar Chul Lee Committed by Randeep

Updated SSL_CHECK_FAIL macro to ignore bad client hello message.

Change-Id: I317e63d192af372844e672650c261578508e9331
Signed-off-by: default avatarChul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16367Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarJongsung Lee <js126.lee@samsung.com>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
(cherry picked from commit 7198d2fd)
Reviewed-on: https://gerrit.iotivity.org/gerrit/17171
parent cd62e2b5
......@@ -245,12 +245,15 @@ if (0 != (ret) && MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY != (int) (ret) &&
{ \
oc_mutex_unlock(g_sslContextMutex); \
} \
SSL_RES((peer), CA_DTLS_AUTHENTICATION_FAILURE); \
if ((int) MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO != (int)(ret)) \
{ \
SSL_RES((peer), CA_DTLS_AUTHENTICATION_FAILURE); \
} \
OIC_LOG_V(DEBUG, NET_SSL_TAG, "Out %s", __func__); \
if (-1 != error) \
{ \
return (error); \
} \
} \
}
/**@def CONF_SSL(clientConf, serverConf, fn, ...)
*
......
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