Merge pull request #739 from crazywhalecc/fix/curlca

force curl to respect SSL_CERT_FILE
This commit is contained in:
Marc 2025-06-04 19:09:57 +07:00 committed by GitHub
commit 42f356d322
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,15 @@ trait curl
{
$extra = '';
// lib:openssl
$extra .= $this->builder->getLib('openssl') ? '-DCURL_USE_OPENSSL=ON ' : '-DCURL_USE_OPENSSL=OFF -DCURL_ENABLE_SSL=OFF ';
if ($this->builder->getLib('openssl')) {
$extra .=
'-DCURL_USE_OPENSSL=ON ' .
'-DCURL_CA_BUNDLE=OFF ' .
'-DCURL_CA_PATH=OFF ' .
'-DCURL_CA_FALLBACK=ON ';
} else {
$extra .= '-DCURL_USE_OPENSSL=OFF -DCURL_ENABLE_SSL=OFF ';
}
// lib:brotli
$extra .= $this->builder->getLib('brotli') ? '-DCURL_BROTLI=ON ' : '-DCURL_BROTLI=OFF ';
// lib:libssh2