From: Jeremy Harris Date: Thu, 25 Apr 2019 18:13:31 +0000 (+0100) Subject: Fix build with older GnuTLS X-Git-Tag: exim-4.93-RC0~221 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b9c6f63cd56eaf62303792630a1fa5657499e7a6;p=exim.git Fix build with older GnuTLS --- diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c index abf2c25b8..e08381344 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; {