mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-25 02:02:03 +03:00
@ -2914,11 +2914,12 @@ static int ssl_tls13_parse_end_of_early_data(mbedtls_ssl_context *ssl,
|
|||||||
const unsigned char *buf,
|
const unsigned char *buf,
|
||||||
const unsigned char *end)
|
const unsigned char *end)
|
||||||
{
|
{
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
/* RFC 8446 section 4.5
|
||||||
|
*
|
||||||
|
* struct {} EndOfEarlyData;
|
||||||
|
*/
|
||||||
((void) ssl);
|
((void) ssl);
|
||||||
((void) buf);
|
return buf == end ? 0 : MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE;
|
||||||
((void) end);
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
|
Reference in New Issue
Block a user