summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-05-08 13:28:07 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-05-08 13:28:07 +0100
commita775dd1d134bea7f18927742ca55d1cab44a5474 (patch)
tree8eb111c5f52042923677c4feb55bc4fd9ad868c0 /src
parent7a501c874f028f689c44999ab05bb0d39da46941 (diff)
OpenSSL: fix build under older library version
Broken-by: 4f1d23a1aa
Diffstat (limited to 'src')
-rw-r--r--src/src/tls-openssl.c2
1 files changed, 2 insertions, 0 deletions
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)