aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2020-02-27 02:01:16 +0000
committerSteve Holme <steve_holme@hotmail.com>2020-02-27 15:17:57 +0000
commit9d5893105d554d1792a7cec42038529778ab5e35 (patch)
tree9cdd5184c5031d414eb88d2d25597433b3f90a28 /lib/vtls
parent7c3c5492c8fbde4ec8fec30a997d71aea3c7c2b8 (diff)
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
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/gtls.c6
1 files changed, 5 insertions, 1 deletions
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 */