From a775dd1d134bea7f18927742ca55d1cab44a5474 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 8 May 2019 13:28:07 +0100 Subject: [PATCH] OpenSSL: fix build under older library version Broken-by: 4f1d23a1aa --- src/src/tls-openssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 4cf9863d2..f3ea6b28b 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -2739,12 +2739,14 @@ if (tlsp->host_resumable) debug_printf("decoding session: %s\n", ssl_errstring); } } +#ifdef EXIM_HAVE_SESSION_TICKET else if ( SSL_SESSION_get_ticket_lifetime_hint(ss) + dt->time_stamp < time(NULL)) { DEBUG(D_tls) debug_printf("session expired\n"); dbfn_delete(dbm_file, key); } +#endif else if (!SSL_set_session(ssl, ss)) { DEBUG(D_tls) -- 2.25.1