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 <ronald.cron@arm.com>
This commit is contained in:
parent
ce72763f78
commit
3c3e2e62f6
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue