summary refs log tree commit diff
path: root/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-10-07 12:18:17 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-10-07 12:18:17 +0000
commit20778d629b102f26cf76efd4ee41583efbc9fab6 (patch)
treea6205a6b92b1a801d5d8f2e19749648b7435996d /pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch
parentef27bfc02a5f5f99e5f0043da9e8a81282f7b506 (diff)
downloadnixpkgs-20778d629b102f26cf76efd4ee41583efbc9fab6.tar
nixpkgs-20778d629b102f26cf76efd4ee41583efbc9fab6.tar.gz
nixpkgs-20778d629b102f26cf76efd4ee41583efbc9fab6.tar.bz2
nixpkgs-20778d629b102f26cf76efd4ee41583efbc9fab6.tar.lz
nixpkgs-20778d629b102f26cf76efd4ee41583efbc9fab6.tar.xz
nixpkgs-20778d629b102f26cf76efd4ee41583efbc9fab6.tar.zst
nixpkgs-20778d629b102f26cf76efd4ee41583efbc9fab6.zip
* Updated Catalyst to 5.9. It now uses Plack for interfacing with the
  web server, so add that as well.

svn path=/nixpkgs/trunk/; revision=29709
Diffstat (limited to 'pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch')
-rw-r--r--pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch b/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch
new file mode 100644
index 00000000000..c0fa85ecce8
--- /dev/null
+++ b/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch
@@ -0,0 +1,17 @@
+Use $OPENSSL_X509_CERT_FILE to get the CA certificates.
+
+diff -ru -x '*~' LWP-Protocol-https-6.02-orig/lib/LWP/Protocol/https.pm LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm
+--- LWP-Protocol-https-6.02-orig/lib/LWP/Protocol/https.pm	2011-03-27 13:54:01.000000000 +0200
++++ LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm	2011-10-07 13:23:41.398628375 +0200
+@@ -21,6 +21,11 @@
+     }
+     if ($ssl_opts{SSL_verify_mode}) {
+ 	unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
++            if (defined $ENV{'OPENSSL_X509_CERT_FILE'}) {
++                $ssl_opts{SSL_ca_file} = $ENV{'OPENSSL_X509_CERT_FILE'};
++            }
++        }
++	unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
+ 	    eval {
+ 		require Mozilla::CA;
+ 	    };