[exim-cvs] Fix build with older GnuTLS

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Fix build with older GnuTLS
Gitweb: https://git.exim.org/exim.git/commitdiff/b9c6f63cd56eaf62303792630a1fa5657499e7a6
Commit:     b9c6f63cd56eaf62303792630a1fa5657499e7a6
Parent:     6010e708237477b8fab5fbed0a972a937d89fc56
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Apr 25 19:13:31 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Thu Apr 25 19:13:31 2019 +0100


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


diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index abf2c25..e083813 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -1516,7 +1516,11 @@ state->peerdn = NULL;
 cipher = gnutls_cipher_get(state->session);
 protocol = gnutls_protocol_get_version(state->session);
 mac = gnutls_mac_get(state->session);
-kx = protocol < GNUTLS_TLS1_3 ? gnutls_kx_get(state->session) : 0;
+kx =
+#ifdef GNUTLS_TLS1_3
+    protocol >= GNUTLS_TLS1_3 ? 0 :
+#endif
+  gnutls_kx_get(state->session);


old_pool = store_pool;
{