Skip to content

8.17.0 regression: Builds with no CURL_CA_PATH ignore CURLOPT_CAPATH #19401

@bradking

Description

@bradking

I did this

Build libcurl with --without-ca-bundle (or -DCURL_CA_PATH:STRING=none with CMake), such that no CURL_CA_PATH is defined here.

Then explicitly set the CURLOPT_CAPATH option in an application linked to libcurl:

curl_easy_setopt(curl, CURLOPT_CAPATH, "/some/path");

I expected the following

CApath is /some/path. Instead the CURLOPT_CAPATH setting is ignored.

curl/libcurl version

curl 8.17.0

The problem bisects to commit eefd03c, #18703.

operating system

Any using OpenSSL or similar.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions