[exim-cvs] Fix build on older GnuTLS

Inizio della pagina
Delete this message
Reply to this message
Autore: Exim Git Commits Mailing List
Data:  
To: exim-cvs
Oggetto: [exim-cvs] Fix build on older GnuTLS
Gitweb: https://git.exim.org/exim.git/commitdiff/fb34a7cb31f66ad7311687840214a92e3737f10b
Commit:     fb34a7cb31f66ad7311687840214a92e3737f10b
Parent:     b1a4f2342be3e09981033bb5a1718ad909f86ad7
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu May 2 18:02:19 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Thu May 2 18:02:19 2019 +0100


    Fix build on older GnuTLS


    Broken-buy: b10c87b38c
---
 src/src/tls-gnu.c | 2 ++
 1 file changed, 2 insertions(+)


diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index 8bd5aed..03002c7 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -2475,6 +2475,7 @@ but this flag is not set until the second. TLS 1.3 it's the other way about.
Keep both calls as the session data cannot be extracted before handshake
completes. */

+#ifdef GNUTLS_SFLAGS_SESSION_TICKET
 if (gnutls_session_get_flags(session) & GNUTLS_SFLAGS_SESSION_TICKET)
   {
   gnutls_datum_t tkt;
@@ -2509,6 +2510,7 @@ if (gnutls_session_get_flags(session) & GNUTLS_SFLAGS_SESSION_TICKET)
     else DEBUG(D_tls)
       debug_printf("extract session data: %s\n", US gnutls_strerror(rc));
   }
+#endif
 }