diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2013-01-04 23:13:23 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2013-01-04 23:13:23 +0000 |
commit | 3dff750ae22185c2ee7bb6f5bc7e06d84267b9b9 (patch) | |
tree | a81750af7734de669f68fe15693ed630ea51ce8c /content/fetch.c | |
parent | d0d3d31e97c3d8e23be983243fb29e30accb4c86 (diff) | |
download | netsurf-3dff750ae22185c2ee7bb6f5bc7e06d84267b9b9.tar.gz netsurf-3dff750ae22185c2ee7bb6f5bc7e06d84267b9b9.tar.bz2 |
Downgrade TLS version support if it turns out the server can't cope with TLSv1.1.
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/content/fetch.c b/content/fetch.c index 028fe9ee4..bfe4458cf 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -235,7 +235,8 @@ struct fetch * fetch_start(nsurl *url, nsurl *referer, fetch_callback callback, void *p, bool only_2xx, const char *post_urlenc, const struct fetch_multipart_data *post_multipart, - bool verifiable, const char *headers[]) + bool verifiable, bool downgrade_tls, + const char *headers[]) { struct fetch *fetch; scheme_fetcher *fetcher = fetchers; @@ -321,8 +322,9 @@ struct fetch * fetch_start(nsurl *url, nsurl *referer, /* Got a scheme fetcher, try and set up the fetch */ fetch->fetcher_handle = fetch->ops->setup_fetch(fetch, url, - only_2xx, post_urlenc, - post_multipart, headers); + only_2xx, downgrade_tls, + post_urlenc, post_multipart, + headers); if (fetch->fetcher_handle == NULL) goto failed; |