diff options
author | Norbert Fabritius <norbert.fabritius@esrlabs.com> | 2023-01-23 15:24:59 +0100 |
---|---|---|
committer | Ronald Cron <ronald.cron@arm.com> | 2024-03-27 08:22:53 +0100 |
commit | 96eed725e1f6f2558fc4eb8af4c3fb0ae099aa18 (patch) | |
tree | 99a45d6bd40078ba533ff53e5e630247164e5d45 /library | |
parent | 611f899c0c9d397baedfaec34ea0861ad2543991 (diff) | |
download | mbedtls-96eed725e1f6f2558fc4eb8af4c3fb0ae099aa18.zip mbedtls-96eed725e1f6f2558fc4eb8af4c3fb0ae099aa18.tar.gz mbedtls-96eed725e1f6f2558fc4eb8af4c3fb0ae099aa18.tar.bz2 |
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>
Diffstat (limited to 'library')
-rw-r--r-- | library/ssl_tls13_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index e8afe45..5c5ef5d 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -3103,6 +3103,7 @@ static int ssl_tls13_handshake_wrapup(mbedtls_ssl_context *ssl) return 0; } +#if defined(MBEDTLS_SSL_SESSION_TICKETS) /* * 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; } -#if defined(MBEDTLS_SSL_SESSION_TICKETS) MBEDTLS_CHECK_RETURN_CRITICAL static int ssl_tls13_prepare_new_session_ticket(mbedtls_ssl_context *ssl, unsigned char *ticket_nonce, |