OpenSSL: fix build under older library version
authorJeremy Harris <jgh146exb@wizmail.org>
Wed, 8 May 2019 12:28:07 +0000 (13:28 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Wed, 8 May 2019 12:28:07 +0000 (13:28 +0100)
Broken-by: 4f1d23a1aa
src/src/tls-openssl.c

index 4cf9863d2ccdf96f8710049ea98f63b0e72d23f3..f3ea6b28bfb7ff8d313305b92297b236a93f4033 100644 (file)
@@ -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)