aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--grpmi/curl_download/curl_download.xs7
-rw-r--r--rpmdrake.spec11
2 files changed, 17 insertions, 1 deletions
diff --git a/grpmi/curl_download/curl_download.xs b/grpmi/curl_download/curl_download.xs
index 2aef858a..288982f9 100644
--- a/grpmi/curl_download/curl_download.xs
+++ b/grpmi/curl_download/curl_download.xs
@@ -106,6 +106,13 @@ char * download_url_real(char * url, char * location, char * proxy, char * proxy
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, FALSE);
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, my_progress_func);
+ /* needed for "insecure" SSL accesses (don't verify the peer's certificate) */
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
+ /* allow Location: to be followed (needed for MandrakeClub) */
+ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, TRUE);
+ /* when following Location:, allow to still send user+password when hostname changed (needed for Club) */
+ curl_easy_setopt(curl, CURLOPT_NO_HOSTNAME_CHECK_BEFORE_AUTHENTICATION, TRUE);
+
if (proxy && strcmp(proxy, ""))
curl_easy_setopt(curl, CURLOPT_PROXY, proxy);
if (proxy_user && strcmp(proxy_user, ""))
diff --git a/rpmdrake.spec b/rpmdrake.spec
index 881cfb27..24a3cd6d 100644
--- a/rpmdrake.spec
+++ b/rpmdrake.spec
@@ -8,7 +8,7 @@
%define name rpmdrake
%define version 2.1
-%define release 13mdk
+%define release 14mdk
Name: %{name}
Version: %{version}
@@ -37,6 +37,7 @@ A fourth program manages the sources (add, remove, edit).
Version: 9.1
Summary: Mandrake Linux graphical frontend for packages installation
Group: System/Configuration/Packaging
+Requires: libcurl2 >= 7.10.3-2mdk
%description -n grpmi
grpmi is a graphical frontend to show progression of download and
@@ -115,6 +116,14 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*.pm
%changelog
+* Wed Mar 26 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-14mdk
+- grpmi/curl_download: fixes for MandrakeClub:
+ - don't verify peer's certificate (-k option of commandline curl)
+ - allow following locations (allow HTTP redirections)
+ - don't check for hostname before sending authentication (allow HTTP
+ redirection needing authentication to another host)
+- grpmi/curl_download: add missing recent curl error codes
+
* Wed Mar 12 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-13mdk
- update share/icons from mcc new icons