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
This commit is contained in:
Steve Holme 2020-02-27 02:01:16 +00:00
parent 7c3c5492c8
commit 9d5893105d
No known key found for this signature in database
GPG Key ID: 4059CB85CA7E8F19
1 changed files with 5 additions and 1 deletions

View File

@ -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 */