[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The netsec thread

From: Robert Pluim
Subject: Re: The netsec thread
Date: Thu, 05 Sep 2019 14:12:38 +0200

*sigh* there are days when I hate the C language.

I screwed up, GNUTLS_TLS1_3 is not a define, itʼs an enum, so we canʼt
check for it with the pre-processor. I guess that means we have to
check based on the GnuTLS version, i.e.

diff --git a/src/gnutls.c b/src/gnutls.c
index c74936c840..ffd8e2df4f 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -1520,7 +1520,7 @@ DEFUN ("gnutls-peer-status", Fgnutls_peer_status, 
Sgnutls_peer_status, 1, 1, 0,
   /* Renegotiation Indication */
-#ifdef GNUTLS_TLS1_3
+#if GNUTLS_VERSION_NUMBER >= 0x030603
   bool older_proto = proto < GNUTLS_TLS1_3;
   bool older_proto = true;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]