diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2013-03-12 08:16:56 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2013-03-12 08:16:56 +0000 |
commit | 42c2496136815b1c84271ce118d2a56fb383f621 (patch) | |
tree | a860d159347660f7d40fa3ecc7938449e39ab283 /app-crypt/tinyca/files | |
parent | sci-visualization/quickplot: Version BUmp (diff) | |
download | historical-42c2496136815b1c84271ce118d2a56fb383f621.tar.gz historical-42c2496136815b1c84271ce118d2a56fb383f621.tar.bz2 historical-42c2496136815b1c84271ce118d2a56fb383f621.zip |
Solve openssl-1.0 compatibility, per bug#460270, thanks to Per Pomsel
Package-Manager: portage-2.2.0_alpha166/cvs/Linux x86_64
Manifest-Sign-Key: 0xBF20DC51
Diffstat (limited to 'app-crypt/tinyca/files')
-rw-r--r-- | app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch b/app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch new file mode 100644 index 000000000000..3691d5b9cc93 --- /dev/null +++ b/app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch @@ -0,0 +1,48 @@ +--- a/lib/OpenSSL.pm.orig 2013-03-05 15:57:46.332286060 +0100 ++++ b/lib/OpenSSL.pm 2013-03-05 15:57:53.408466038 +0100 +@@ -605,6 +605,8 @@ + # dirty fix (incompleted) --curly + $i = sprintf( "%x", $1); + $tmp->{'SERIAL'} = length($i)%2?"0".uc($i):uc($i); ++ } elsif ($_ =~ /^\s*([da-f]{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2})\s*$/i) { ++ $tmp->{'SERIAL'} = $1; + } elsif ($_ =~ /Signature Algorithm.*: (\w+)/i) { + $tmp->{'SIG_ALGORITHM'} = $1; + } elsif ($_ =~ /Issuer: (.+)/i) { +@@ -823,10 +825,10 @@ + $cmd = "$self->{'bin'} $opts->{'cmd'}"; + $cmd .= " -config $opts->{'config'}" if(defined($opts->{'config'})); + $cmd .= " -inform $opts->{'inform'}"; +- $cmd .= " -out \"$file\""; + if($opts->{'outform'} eq 'TEXT') { + $cmd .= " -text -noout"; + } else { ++ $cmd .= " -out \"$file\""; + $cmd .= " -outform $opts->{'outform'}"; + } + +@@ -859,13 +861,17 @@ + } + } + +- open(IN, $file) || do { +- my $t = sprintf(_("Can't open file %s: %s"), $file, $!); +- GUI::HELPERS::print_warning($t); +- return; +- }; +- $tmp .= $_ while(<IN>); +- close(IN); ++ if ($opts->{'outform'} eq 'TEXT') { ++ $tmp = $ext; ++ } else { ++ open(IN, $file) || do { ++ my $t = sprintf(_("Can't open file %s: %s"), $file, $!); ++ GUI::HELPERS::print_warning($t); ++ return; ++ }; ++ $tmp .= $_ while(<IN>); ++ close(IN); ++ } + + unlink($file); + |