From 3c3e2e62f699c285931f80229307db4c6753adcb Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Wed, 22 Nov 2023 08:10:34 +0100 Subject: [PATCH] ssl_ticket.c: Remove TLS server guard The ticket module is removed from the build if the TLS server is not in the build now thus no need for the guard. Signed-off-by: Ronald Cron --- library/ssl_ticket.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/ssl_ticket.c b/library/ssl_ticket.c index d0bd495e66..b47af86133 100644 --- a/library/ssl_ticket.c +++ b/library/ssl_ticket.c @@ -499,12 +499,9 @@ int mbedtls_ssl_ticket_parse(void *p_ticket, if (session->tls_version == MBEDTLS_SSL_VERSION_TLS1_3) { /* Check for expiration */ mbedtls_ms_time_t ticket_age = -1; -#if defined(MBEDTLS_SSL_SRV_C) if (session->endpoint == MBEDTLS_SSL_IS_SERVER) { ticket_age = mbedtls_ms_time() - session->ticket_creation_time; } -#endif - mbedtls_ms_time_t ticket_lifetime = (mbedtls_ms_time_t) ctx->ticket_lifetime * 1000;