ssl_ticket.c: Remove pedantic server endpoint check

When calculating the ticket age, remove the check
that the endpoint is a server. The module is
supposed to be used only server side. Furthermore,
if such check was necessary, it should be at the
beginning of all ssl_ticket.c APIs. As there is no
such protection in any API, just remove the check.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/library/ssl_ticket.c b/library/ssl_ticket.c
index b47af86..e47cf42 100644
--- a/library/ssl_ticket.c
+++ b/library/ssl_ticket.c
@@ -498,10 +498,8 @@
 #if defined(MBEDTLS_SSL_PROTO_TLS1_3)
     if (session->tls_version == MBEDTLS_SSL_VERSION_TLS1_3) {
         /* Check for expiration */
-        mbedtls_ms_time_t ticket_age = -1;
-        if (session->endpoint == MBEDTLS_SSL_IS_SERVER) {
-            ticket_age = mbedtls_ms_time() - session->ticket_creation_time;
-        }
+        mbedtls_ms_time_t ticket_age = mbedtls_ms_time() -
+                                       session->ticket_creation_time;
         mbedtls_ms_time_t ticket_lifetime =
             (mbedtls_ms_time_t) ctx->ticket_lifetime * 1000;