-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
Setting CURLOPT_CAPATH option when libcurl is built against darwinssl returns CURLE_NOT_BUILT_IN (8250f93).
In command line curl, CURLOPT_CAPATH option is invoked when user sets --capath argument and also when SSL_CERT_DIR environment variable is set.
In both cases curl quits with CURLE_NOT_BUILT_IN error.
Users may want to use curl with darwinssl support and still have SSL_CERT_DIR variable set. Curl should ignore this environment variable when built against darwinssl instead of quitting with error. Especially that the error message is not very informative in this case: "A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision." Users may even don’t realise they have environment variable set or that it is the cause of the error.
Also I wonder whether --capath command line option shouldn't be disabled in this case.