mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Guard ticket specific TLS 1.3 function with macro
Guard ssl_tls13_write_new_session_ticket_coordinate with MBEDTLS_SSL_SESSION_TICKETS macro. Signed-off-by: Norbert Fabritius <norbert.fabritius@esrlabs.com>
This commit is contained in:
committed by
Ronald Cron
parent
611f899c0c
commit
96eed725e1
@@ -3103,6 +3103,7 @@ static int ssl_tls13_handshake_wrapup(mbedtls_ssl_context *ssl)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
||||||
/*
|
/*
|
||||||
* Handler for MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET
|
* Handler for MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET
|
||||||
*/
|
*/
|
||||||
@@ -3132,7 +3133,6 @@ static int ssl_tls13_write_new_session_ticket_coordinate(mbedtls_ssl_context *ss
|
|||||||
return SSL_NEW_SESSION_TICKET_WRITE;
|
return SSL_NEW_SESSION_TICKET_WRITE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
|
||||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_prepare_new_session_ticket(mbedtls_ssl_context *ssl,
|
static int ssl_tls13_prepare_new_session_ticket(mbedtls_ssl_context *ssl,
|
||||||
unsigned char *ticket_nonce,
|
unsigned char *ticket_nonce,
|
||||||
|
Reference in New Issue
Block a user