diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-10-16 15:36:28 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-10-16 15:36:28 +0200 |
commit | 592b78001c381f9cca6f20d8d1d47696bb98c0d1 (patch) | |
tree | a6c9a7d5f3015dbd3e168e90a37191aba3a532ac /methods/https.cc | |
parent | 364af2ef2aba2911b12379ec8b6e55874e4b0a31 (diff) |
port netrc support from maemon
Diffstat (limited to 'methods/https.cc')
-rw-r--r-- | methods/https.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/methods/https.cc b/methods/https.cc index 37d93e308..a86c78029 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -14,6 +14,7 @@ #include <apt-pkg/acquire-method.h> #include <apt-pkg/error.h> #include <apt-pkg/hashes.h> +#include <apt-pkg/netrc.h> #include <sys/stat.h> #include <sys/time.h> @@ -126,6 +127,8 @@ bool HttpsMethod::Fetch(FetchItem *Itm) curl_easy_reset(curl); SetupProxy(); + maybe_add_auth (Uri, _config->FindFile("Dir::ETc::netrc")); + // callbacks curl_easy_setopt(curl, CURLOPT_URL, Itm->Uri.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data); |