mirror of
https://github.com/espressif/openthread.git
synced 2026-09-01 14:59:54 +00:00
Send DTLS-Alert(close_notify) after receiving it from peer (#620)
Make it specification compliant, which requires a round trip to close joiner session.
This commit is contained in:
@@ -342,6 +342,11 @@ void Dtls::Process(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (rval == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY)
|
||||
{
|
||||
mbedtls_ssl_close_notify(&mSsl);
|
||||
}
|
||||
|
||||
mbedtls_ssl_session_reset(&mSsl);
|
||||
mbedtls_ssl_set_hs_ecjpake_password(&mSsl, mPsk, mPskLength);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user