gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 174/282: gtls: Fixed compilation when using GnuTLS < 3.5.0


From: gnunet
Subject: [gnurl] 174/282: gtls: Fixed compilation when using GnuTLS < 3.5.0
Date: Wed, 01 Apr 2020 14:30:39 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 9d5893105d554d1792a7cec42038529778ab5e35
Author: Steve Holme <address@hidden>
AuthorDate: Thu Feb 27 02:01:16 2020 +0000

    gtls: Fixed compilation when using GnuTLS < 3.5.0
    
    Reverts the functionality from 41fcb4f when compiling with GnuTLS older
    than 3.5.0.
    
    Reviewed-by: Daniel Stenberg
    Closes #4984
---
 lib/vtls/gtls.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index 803d053ec..5f740eeba 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -664,7 +664,11 @@ gtls_connect_step1(struct connectdata *conn,
   }
 
   /* Initialize TLS session as a client */
-  init_flags = GNUTLS_CLIENT | GNUTLS_FORCE_CLIENT_CERT;
+  init_flags = GNUTLS_CLIENT;
+
+#if defined(GNUTLS_FORCE_CLIENT_CERT)
+  init_flags |= GNUTLS_FORCE_CLIENT_CERT;
+#endif
 
 #if defined(GNUTLS_NO_TICKETS)
   /* Disable TLS session tickets */

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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