Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/a8ff4ab2285150b8805154c1f9281d60626ea4c3
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/a8ff4ab2285150b8805154c1f9281d60626ea4c3
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/a8ff4ab2285150b8805154c1f9281d60626ea4c3

The branch, master has been updated
       via  a8ff4ab2285150b8805154c1f9281d60626ea4c3 (commit)
      from  b22e61871ccfce6c6bc66130e7c6eed0f89b3386 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=a8ff4ab2285150b8805154c1f9281d60626ea4c3
commit a8ff4ab2285150b8805154c1f9281d60626ea4c3
Author: John-Mark Bell <[email protected]>
Commit: John-Mark Bell <[email protected]>

    fetchers/curl: tolerate lack of TLS1.3
    
    If we are building against a modern version of libcurl, but it was
    built against a version of OpenSSL that does not support TLS1.3,
    then attempting to configure TLS1.3 ciphersuites will fail with
    CURLE_NOT_BUILT_IN. Tolerate this scenario by treating such a
    return code as non-fatal in this case.

diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index a0c26ae..1377ec7 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -1792,8 +1792,12 @@ nserror fetch_curl_register(void)
                 *  fetch fails with "Unknown cipher in list"
                 */
 #if LIBCURL_VERSION_NUM >= 0x073d00
-               /* Need libcurl 7.61.0 or later */
-               SETOPT(CURLOPT_TLS13_CIPHERS, CIPHER_SUITES);
+               /* Need libcurl 7.61.0 or later built against OpenSSL with
+                * TLS1.3 support */
+               code = curl_easy_setopt(fetch_blank_curl,
+                               CURLOPT_TLS13_CIPHERS, CIPHER_SUITES);
+               if (code != CURLE_OK && code != CURLE_NOT_BUILT_IN)
+                       goto curl_easy_setopt_failed;
 #endif
                SETOPT(CURLOPT_SSL_CIPHER_LIST, CIPHER_LIST);
        }


-----------------------------------------------------------------------

Summary of changes:
 content/fetchers/curl.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index a0c26ae..1377ec7 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -1792,8 +1792,12 @@ nserror fetch_curl_register(void)
                 *  fetch fails with "Unknown cipher in list"
                 */
 #if LIBCURL_VERSION_NUM >= 0x073d00
-               /* Need libcurl 7.61.0 or later */
-               SETOPT(CURLOPT_TLS13_CIPHERS, CIPHER_SUITES);
+               /* Need libcurl 7.61.0 or later built against OpenSSL with
+                * TLS1.3 support */
+               code = curl_easy_setopt(fetch_blank_curl,
+                               CURLOPT_TLS13_CIPHERS, CIPHER_SUITES);
+               if (code != CURLE_OK && code != CURLE_NOT_BUILT_IN)
+                       goto curl_easy_setopt_failed;
 #endif
                SETOPT(CURLOPT_SSL_CIPHER_LIST, CIPHER_LIST);
        }


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to