Skip to content

Add support for .netrc credential storage to file() and ExternalProject

Shane Parris requested to merge (removed):curl_netrc_options into master

While the USERPWD/HTTP_PASSWORD option allows specification of credentials for secured downloads, it results in the credentials permeating into the generated build system. The default behavior of libcurl is to ignore any .netrc file in the user's home directory unless CURL_NETRC_(REQUIRED|OPTIONAL) are set in CURLOPT_NETRC. This adds support to the file command and the ExternalProject module to allow supplying parameters to pass along to CURLOPT_NETRC and CURLOPT_NETRC_FILE.

Merge request reports