[exim-cvs] OpenSSL: fix build under older library version

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] OpenSSL: fix build under older library version
Gitweb: https://git.exim.org/exim.git/commitdiff/a775dd1d134bea7f18927742ca55d1cab44a5474
Commit:     a775dd1d134bea7f18927742ca55d1cab44a5474
Parent:     7a501c874f028f689c44999ab05bb0d39da46941
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Wed May 8 13:28:07 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed May 8 13:28:07 2019 +0100


    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 4cf9863..f3ea6b2 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)