diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-03-27 15:01:18 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-03-27 15:01:18 +0000 |
commit | d031dacd27bf9308a58b19a03b5f5f540be5e17f (patch) | |
tree | 41f5218d3db16a56aed6f31eb95f9237ec40e279 | |
parent | 88a77d0ddac584fbba7b2292e3e43d7154c0123b (diff) | |
download | rpmdrake-d031dacd27bf9308a58b19a03b5f5f540be5e17f.tar rpmdrake-d031dacd27bf9308a58b19a03b5f5f540be5e17f.tar.gz rpmdrake-d031dacd27bf9308a58b19a03b5f5f540be5e17f.tar.bz2 rpmdrake-d031dacd27bf9308a58b19a03b5f5f540be5e17f.tar.xz rpmdrake-d031dacd27bf9308a58b19a03b5f5f540be5e17f.zip |
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)
-rw-r--r-- | grpmi/curl_download/curl_download.xs | 7 | ||||
-rw-r--r-- | rpmdrake.spec | 11 |
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 |