summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2011-03-17 07:23:22 +0000
committerTorsten Veller <tove@gentoo.org>2011-03-17 07:23:22 +0000
commit73c8e3f9f65d52eeb7108901cd40c35ec4e0db3c (patch)
tree6b6a6560a17ab7c6ae037f15bcea8910102ee8e9 /dev-perl/libwww-perl/files
parentUpdate netlink patch from git. (diff)
downloadgentoo-2-73c8e3f9f65d52eeb7108901cd40c35ec4e0db3c.tar.gz
gentoo-2-73c8e3f9f65d52eeb7108901cd40c35ec4e0db3c.tar.bz2
gentoo-2-73c8e3f9f65d52eeb7108901cd40c35ec4e0db3c.zip
Use certificates from app-misc/ca-certificates (#358081)
(Portage version: 2.2.0_alpha27/cvs/Linux x86_64)
Diffstat (limited to 'dev-perl/libwww-perl/files')
-rw-r--r--dev-perl/libwww-perl/files/ca-certs.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-perl/libwww-perl/files/ca-certs.patch b/dev-perl/libwww-perl/files/ca-certs.patch
new file mode 100644
index 000000000000..b0565f0fdba0
--- /dev/null
+++ b/dev-perl/libwww-perl/files/ca-certs.patch
@@ -0,0 +1,30 @@
+X-Bugs-Gentoo: https://bugs.gentoo.org/358081
+--- libwww-perl-6.01/lib/LWP/Protocol/https.pm
++++ libwww-perl-6.01/lib/LWP/Protocol/https.pm
+@@ -21,25 +21,7 @@
+ }
+ if ($ssl_opts{SSL_verify_mode}) {
+ unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
+- eval {
+- require Mozilla::CA;
+- };
+- if ($@) {
+- if ($@ =! /^Can't locate Mozilla\/CA\.pm/) {
+- $@ = <<'EOT';
+-Can't verify SSL peers without knowning which Certificate Authorities to trust
+-
+-This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
+-envirionment variable or by installing the Mozilla::CA module.
+-
+-To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
+-envirionment variable to 0. If you do this you can't be sure that you
+-communicate with the expected peer.
+-EOT
+- }
+- die $@;
+- }
+- $ssl_opts{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
++ $ssl_opts{SSL_ca_path} = '/etc/ssl/certs';
+ }
+ }
+ $self->{ssl_opts} = \%ssl_opts;