|
|
57378d |
From 02db836ecf68b7554c7e3f496dbfa9ef1b432d76 Mon Sep 17 00:00:00 2001
|
|
|
57378d |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
57378d |
Date: Fri, 16 Sep 2011 10:33:54 +0200
|
|
|
57378d |
Subject: [PATCH] Redirect to ca-certificates bundle
|
|
|
57378d |
|
|
|
57378d |
This patch replaces Mozilla-CA certificate bundle with bundle
|
|
|
57378d |
delivered by ca-certificates RPM package used as single source of
|
|
|
57378d |
Mozilla certificate bundle.
|
|
|
57378d |
|
|
|
57378d |
See <https://bugzilla.redhat.com/show_bug.cgi?id=738383> for more
|
|
|
57378d |
details.
|
|
|
57378d |
---
|
|
|
57378d |
MANIFEST | 1 -
|
|
|
57378d |
Makefile.PL | 8 ++++++++
|
|
|
57378d |
lib/Mozilla/CA.pm | 8 +-------
|
|
|
57378d |
3 files changed, 9 insertions(+), 8 deletions(-)
|
|
|
57378d |
|
|
|
57378d |
diff --git a/MANIFEST b/MANIFEST
|
|
|
57378d |
index a88847b..6577ede 100644
|
|
|
57378d |
--- a/MANIFEST
|
|
|
57378d |
+++ b/MANIFEST
|
|
|
57378d |
@@ -1,5 +1,4 @@
|
|
|
57378d |
lib/Mozilla/CA.pm
|
|
|
57378d |
-lib/Mozilla/CA/cacert.pem
|
|
|
57378d |
Makefile.PL
|
|
|
57378d |
MANIFEST This list of files
|
|
|
57378d |
README
|
|
|
57378d |
diff --git a/Makefile.PL b/Makefile.PL
|
|
|
57378d |
index 2b10474..57f2f07 100644
|
|
|
57378d |
--- a/Makefile.PL
|
|
|
57378d |
+++ b/Makefile.PL
|
|
|
57378d |
@@ -40,3 +40,11 @@ BEGIN {
|
|
|
57378d |
ExtUtils::MakeMaker::WriteMakefile(%arg);
|
|
|
57378d |
};
|
|
|
57378d |
}
|
|
|
57378d |
+
|
|
|
57378d |
+package MY;
|
|
|
57378d |
+sub MY::libscan {
|
|
|
57378d |
+ my $name = shift->SUPER::libscan(@_);
|
|
|
57378d |
+ # Remove private certificate bundle
|
|
|
57378d |
+ if ($name =~ /cacert.pem\z/) { $name = '' };
|
|
|
57378d |
+ return $name;
|
|
|
57378d |
+}
|
|
|
57378d |
diff --git a/lib/Mozilla/CA.pm b/lib/Mozilla/CA.pm
|
|
|
57378d |
index 95fc86d..71e4f91 100644
|
|
|
57378d |
--- a/lib/Mozilla/CA.pm
|
|
|
57378d |
+++ b/lib/Mozilla/CA.pm
|
|
|
57378d |
@@ -3,16 +3,10 @@ package Mozilla::CA;
|
|
|
57378d |
use strict;
|
|
|
57378d |
our $VERSION = '20130114';
|
|
|
57378d |
|
|
|
57378d |
-use Cwd ();
|
|
|
57378d |
use File::Spec ();
|
|
|
57378d |
-use File::Basename qw(dirname);
|
|
|
57378d |
|
|
|
57378d |
sub SSL_ca_file {
|
|
|
57378d |
- my $file = File::Spec->catfile(dirname(__FILE__), "CA", "cacert.pem");
|
|
|
57378d |
- if (!File::Spec->file_name_is_absolute($file)) {
|
|
|
57378d |
- $file = File::Spec->catfile(Cwd::cwd(), $file);
|
|
|
57378d |
- }
|
|
|
57378d |
- return $file;
|
|
|
57378d |
+ return File::Spec->catfile('/etc/pki/tls/certs/ca-bundle.crt');
|
|
|
57378d |
}
|
|
|
57378d |
|
|
|
57378d |
1;
|
|
|
57378d |
--
|
|
|
57378d |
1.7.11.4
|
|
|
57378d |
|