MantisBT - Buildsystem
View Issue Details
0002807Buildsystem[All Projects] Generalpublic2021-03-21 06:472021-03-21 19:53
ReporterPICCORO Lenz McKAY 
Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Fixed in CI build #
Reported in CI build #
Summary0002807: error: 'X509_V_ERR_HOSTNAME_MISMATCH' undeclared
Description
i try to build in a embebed system and got this error using curl 7.38

[ 168s] content/fetchers/curl.c: In function 'fetch_curl_store_certs_in_cache':
[ 168s] content/fetchers/curl.c:648:8: error: 'X509_V_ERR_HOSTNAME_MISMATCH' undeclared (first use in this function)
Steps To Reproducetry to build the webbrowser
TagsNo tags attached.
Attached Filespatch openssl-compat.patch (1,312) 2021-03-21 19:53
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=696&type=bug

Notes
(0002322)
PICCORO Lenz McKAY   
2021-03-21 06:55   
wheantime i just removed the case in curl.c to able to build iwth older curl libs:

--- netsurf-3.10.orig/netsurf/content/fetchers/curl.c
+++ netsurf-3.10/netsurf/content/fetchers/curl.c
@@ -645,10 +645,6 @@ fetch_curl_store_certs_in_cache(struct c
             chain.certs[depth].err = SSL_CERT_ERR_REVOKED;
             break;
 
- case X509_V_ERR_HOSTNAME_MISMATCH:
- chain.certs[depth].err = SSL_CERT_ERR_HOSTNAME_MISMATCH;
- break;
-
         default:
             chain.certs[depth].err = SSL_CERT_ERR_UNKNOWN;
             break;
(0002324)
PICCORO Lenz McKAY   
2021-03-21 19:52   
fix and patch at https://bugs.netsurf-browser.org/mantis/view.php?id=2807#c2322 in issue 0002808
(0002325)
PICCORO Lenz McKAY   
2021-03-21 19:53   
patch added, this fixed 0002807 and 0002807

Issue History
2021-03-21 06:47PICCORO Lenz McKAYNew Issue
2021-03-21 06:55PICCORO Lenz McKAYNote Added: 0002322
2021-03-21 19:52PICCORO Lenz McKAYNote Added: 0002324
2021-03-21 19:53PICCORO Lenz McKAYFile Added: openssl-compat.patch
2021-03-21 19:53PICCORO Lenz McKAYNote Added: 0002325