diff options
author | Steve Holme <steve_holme@hotmail.com> | 2020-02-27 02:01:16 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2020-02-27 15:17:57 +0000 |
commit | 9d5893105d554d1792a7cec42038529778ab5e35 (patch) | |
tree | 9cdd5184c5031d414eb88d2d25597433b3f90a28 /lib/vtls | |
parent | 7c3c5492c8fbde4ec8fec30a997d71aea3c7c2b8 (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.c | 6 |
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 */ |