mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 00:09:41 +03:00
Only disable TLS1.2 if it can be disabled.
This commit is contained in:
parent
c2c2fc959e
commit
aa438d34d2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user