From 14b2822e5b51df2dbe8726f783cf463e5a298268 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 31 Aug 2009 15:58:24 +0000 Subject: download: add an option to be strict about SSL certificate checks --- urpm/download.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urpm/download.pm b/urpm/download.pm index 30930077..829e3b2c 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -322,7 +322,7 @@ sub sync_wget { ($options->{callback} ? ("--progress=bar:force", "-o", "-") : $options->{quiet} ? "-q" : @{[]}), "--retr-symlinks", - "--no-check-certificate", + ($options->{"strict-certificate-check"} ? () : "--no-check-certificate"), "--timeout=$CONNECT_TIMEOUT", (defined $options->{'wget-options'} ? split /\s+/, $options->{'wget-options'} : ()), '-P', $options->{dir}, @@ -470,7 +470,7 @@ sub sync_curl { ($options->{proxy} ? set_proxy({ type => "curl", proxy => $options->{proxy} }) : ()), ($options->{retry} ? ('--retry', $options->{retry}) : ()), ($options->{quiet} ? "-s" : @{[]}), - "-k", + ($options->{"strict-certificate-check"} ? () : "-k"), $location_trusted ? "--location-trusted" : @{[]}, "-R", "-f", -- cgit v1.2.1