summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-04-25 19:37:31 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-04-25 19:37:31 +0100
commita8af957d93348cd8c74b852431fae7e65bc8297f (patch)
tree55bcfe331372e78848307e35a1f2b97a5ee125eb /src
parentb9c6f63cd56eaf62303792630a1fa5657499e7a6 (diff)
Fix build with older GnuTLS, redux
Diffstat (limited to 'src')
-rw-r--r--src/src/tls-gnu.c4
1 files changed, 4 insertions, 0 deletions
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;