[exim-cvs] Fix build with older GnuTLS, redux

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 with older GnuTLS, redux
Gitweb: https://git.exim.org/exim.git/commitdiff/a8af957d93348cd8c74b852431fae7e65bc8297f
Commit:     a8af957d93348cd8c74b852431fae7e65bc8297f
Parent:     b9c6f63cd56eaf62303792630a1fa5657499e7a6
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Apr 25 19:37:31 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Thu Apr 25 19:37:31 2019 +0100


    Fix build with older GnuTLS, redux
---
 src/src/tls-gnu.c | 4 ++++
 1 file changed, 4 insertions(+)


diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index e083813..91ddc57 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -2070,7 +2070,11 @@ debug_printf("gnutls_handshake was successful\n");
debug_printf("%s\n", gnutls_session_get_desc(state->session));
#endif
#ifdef SUPPORT_GNUTLS_KEYLOG
+# ifdef GNUTLS_TLS1_3
if (gnutls_protocol_get_version(state->session) < GNUTLS_TLS1_3)
+#else
+if (TRUE)
+#endif
{
gnutls_datum_t c, s;
gstring * gc, * gs;