diff options
-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 */ |