瀏覽代碼

methods/https.cc: Add support for authentication using netrc (Closes: #518473),
patch by Jussi Hakala <jussi.hakala@hut.fi>.

Julian Andres Klode 16 年之前
父節點
當前提交
f465a80f6e
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 3 0
      debian/changelog
  2. 1 0
      methods/https.cc

+ 3 - 0
debian/changelog

@@ -24,6 +24,9 @@ apt (0.7.25) UNRELEASED; urgency=low
     - Restrict option names to alphanumerical characters and "/-:._+".
     - Deprecate #include, we have apt.conf.d nowadays which should be
       sufficient.
+  * methods/https.cc:
+    - Add support for authentication using netrc (Closes: #518473), patch
+      by Jussi Hakala <jussi.hakala@hut.fi>.
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Tue, 29 Sep 2009 15:51:34 +0200
 

+ 1 - 0
methods/https.cc

@@ -135,6 +135,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
    curl_easy_setopt(curl, CURLOPT_NOPROGRESS, false);
    curl_easy_setopt(curl, CURLOPT_FAILONERROR, true);
    curl_easy_setopt(curl, CURLOPT_FILETIME, true);
+   curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
 
    // SSL parameters are set by default to the common (non mirror-specific) value
    // if available (or a default one) and gets overload by mirror-specific ones.