mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
@@ -5291,6 +5291,7 @@ static int ssl_check_ctr_renegotiate( mbedtls_ssl_context *ssl )
|
|||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS) && defined(MBEDTLS_SSL_CLI_C)
|
#if defined(MBEDTLS_SSL_SESSION_TICKETS) && defined(MBEDTLS_SSL_CLI_C)
|
||||||
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_check_new_session_ticket( mbedtls_ssl_context *ssl )
|
static int ssl_tls13_check_new_session_ticket( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -5310,6 +5311,7 @@ static int ssl_tls13_check_new_session_ticket( mbedtls_ssl_context *ssl )
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_SSL_SESSION_TICKETS && MBEDTLS_SSL_CLI_C */
|
#endif /* MBEDTLS_SSL_SESSION_TICKETS && MBEDTLS_SSL_CLI_C */
|
||||||
|
|
||||||
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_handle_hs_message_post_handshake( mbedtls_ssl_context *ssl )
|
static int ssl_tls13_handle_hs_message_post_handshake( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -5339,6 +5341,7 @@ static int ssl_tls13_handle_hs_message_post_handshake( mbedtls_ssl_context *ssl
|
|||||||
* and having a helper function allows to distinguish between TLS <= 1.2 and
|
* and having a helper function allows to distinguish between TLS <= 1.2 and
|
||||||
* TLS 1.3 in the future without bloating the logic of mbedtls_ssl_read().
|
* TLS 1.3 in the future without bloating the logic of mbedtls_ssl_read().
|
||||||
*/
|
*/
|
||||||
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls12_handle_hs_message_post_handshake( mbedtls_ssl_context *ssl )
|
static int ssl_tls12_handle_hs_message_post_handshake( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
|
@@ -1878,6 +1878,7 @@ static int ssl_tls13_handshake_wrapup( mbedtls_ssl_context *ssl )
|
|||||||
|
|
||||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
||||||
|
|
||||||
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_parse_new_session_ticket_exts( mbedtls_ssl_context *ssl,
|
static int ssl_tls13_parse_new_session_ticket_exts( mbedtls_ssl_context *ssl,
|
||||||
const unsigned char *buf,
|
const unsigned char *buf,
|
||||||
const unsigned char *end )
|
const unsigned char *end )
|
||||||
@@ -1923,6 +1924,7 @@ static int ssl_tls13_parse_new_session_ticket_exts( mbedtls_ssl_context *ssl,
|
|||||||
* } NewSessionTicket;
|
* } NewSessionTicket;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_parse_new_session_ticket( mbedtls_ssl_context *ssl,
|
static int ssl_tls13_parse_new_session_ticket( mbedtls_ssl_context *ssl,
|
||||||
unsigned char *buf,
|
unsigned char *buf,
|
||||||
unsigned char *end,
|
unsigned char *end,
|
||||||
@@ -2007,6 +2009,7 @@ static int ssl_tls13_parse_new_session_ticket( mbedtls_ssl_context *ssl,
|
|||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_postprocess_new_session_ticket( mbedtls_ssl_context *ssl,
|
static int ssl_tls13_postprocess_new_session_ticket( mbedtls_ssl_context *ssl,
|
||||||
unsigned char *ticket_nonce,
|
unsigned char *ticket_nonce,
|
||||||
size_t ticket_nonce_len )
|
size_t ticket_nonce_len )
|
||||||
@@ -2073,6 +2076,7 @@ static int ssl_tls13_postprocess_new_session_ticket( mbedtls_ssl_context *ssl,
|
|||||||
/*
|
/*
|
||||||
* Handler for MBEDTLS_SSL_NEW_SESSION_TICKET
|
* Handler for MBEDTLS_SSL_NEW_SESSION_TICKET
|
||||||
*/
|
*/
|
||||||
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_process_new_session_ticket( mbedtls_ssl_context *ssl )
|
static int ssl_tls13_process_new_session_ticket( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
|
Reference in New Issue
Block a user