mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-15 11:17:18 +08:00
implement parser of eoed
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
b4ed4602f2
commit
75c9ab76b5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user