mirror of
https://github.com/curl/curl.git
synced 2026-04-18 07:11:41 +03:00
Add `CURL_CA_SEARCH_SAFE` build-time option to enable CA bundle search
in the `curl` tool directory. The lookup method was already used to find
`.curlrc` and `_curlrc` (on Windows). On Windows it overrides the unsafe
default `SearchPath()` method.
Enable with:
- cmake: `-DCURL_CA_SEARCH_SAFE=ON`
- autotools: `--enable-ca-search-safe`
- raw: `CPPFLAGS=-DCURL_CA_SEARCH_SAFE`
On Windows, before this patch the whole `PATH` was searched for
a CA bundle. `PATH` may contain unwanted or world-writable locations,
including the current directory. Searching them all is convenient to
pick up any CA bundle, but not secure.
The Muldersoft curl distro implements such CA search via a custom
patch for Windows:
|
||
|---|---|---|
| .. | ||
| appveyor-status.yml | ||
| awslc.yml | ||
| checkdocs.yml | ||
| checksrc.yml | ||
| codeql-analysis.yml | ||
| configure-vs-cmake.yml | ||
| curl-for-win.yml | ||
| cygwin.yml | ||
| distcheck.yml | ||
| fuzz.yml | ||
| hacktoberfest-accepted.yml | ||
| http3-linux.yml | ||
| label.yml | ||
| linux-old.yml | ||
| linux.yml | ||
| linux32.yml | ||
| macos.yml | ||
| non-native.yml | ||
| torture.yml | ||
| windows.yml | ||
| wolfssl.yml | ||