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