Only disable TLS1.2 if it can be disabled.

This commit is contained in:
John-Mark Bell 2012-11-04 16:01:05 +00:00
parent c2c2fc959e
commit aa438d34d2

View File

@ -669,8 +669,10 @@ fetch_curl_sslctxfun(CURL *curl_handle, void *_sslctx, void *parm)
SSL_CTX_set_verify(sslctx, SSL_VERIFY_PEER, fetch_curl_verify_callback);
SSL_CTX_set_cert_verify_callback(sslctx, fetch_curl_cert_verify_callback,
parm);
#ifdef SSL_OP_NO_TLSv1_2
/* Disable TLS1.2, as it causes some servers to stall. */
SSL_CTX_set_options(sslctx, SSL_OP_NO_TLSv1_2);
#endif
return CURLE_OK;
}