diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-06-26 12:42:13 +0100 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-06-26 12:42:13 +0100 |
commit | 96d38a9d05abd090d07d5fb192de46417ec18593 (patch) | |
tree | 1e53d1b6aae5cb3b0703ab39cf662300b68df318 /cpan/Digest-SHA | |
parent | e9d9e6f3421bdff07e44686f40670118444f312e (diff) | |
download | perl-96d38a9d05abd090d07d5fb192de46417ec18593.tar.gz |
Update Digest-SHA to CPAN version 5.85
[DELTA]
5.85 Wed Jun 26 04:05:26 MST 2013
- workaround for repeated calls to shaclose (ref. Bug #86295)
-- need to explicitly reset internal pointer to NULL
ref. shaclose() in SHA.xs
- corrected typos in shasum script
-- ref. Bug #85430
Diffstat (limited to 'cpan/Digest-SHA')
-rw-r--r-- | cpan/Digest-SHA/Changes | 7 | ||||
-rw-r--r-- | cpan/Digest-SHA/README | 2 | ||||
-rw-r--r-- | cpan/Digest-SHA/SHA.xs | 3 | ||||
-rw-r--r-- | cpan/Digest-SHA/lib/Digest/SHA.pm | 4 | ||||
-rw-r--r-- | cpan/Digest-SHA/shasum | 10 | ||||
-rw-r--r-- | cpan/Digest-SHA/src/sha.c | 4 | ||||
-rw-r--r-- | cpan/Digest-SHA/src/sha.h | 4 |
7 files changed, 22 insertions, 12 deletions
diff --git a/cpan/Digest-SHA/Changes b/cpan/Digest-SHA/Changes index 9891523873..bef60f3ce3 100644 --- a/cpan/Digest-SHA/Changes +++ b/cpan/Digest-SHA/Changes @@ -1,5 +1,12 @@ Revision history for Perl extension Digest::SHA. +5.85 Wed Jun 26 04:05:26 MST 2013 + - workaround for repeated calls to shaclose (ref. Bug #86295) + -- need to explicitly reset internal pointer to NULL + ref. shaclose() in SHA.xs + - corrected typos in shasum script + -- ref. Bug #85430 + 5.84 Sat Mar 9 17:36:08 MST 2013 - untweaked Makefile.PL to remove dependencies of SHA.c -- dependencies were breaking builds on VMS diff --git a/cpan/Digest-SHA/README b/cpan/Digest-SHA/README index 98317ba482..f32d39ad8a 100644 --- a/cpan/Digest-SHA/README +++ b/cpan/Digest-SHA/README @@ -1,4 +1,4 @@ -Digest::SHA version 5.84 +Digest::SHA version 5.85 ======================== Digest::SHA is a complete implementation of the NIST Secure Hash diff --git a/cpan/Digest-SHA/SHA.xs b/cpan/Digest-SHA/SHA.xs index b93c232d72..3caf8ef0ae 100644 --- a/cpan/Digest-SHA/SHA.xs +++ b/cpan/Digest-SHA/SHA.xs @@ -31,6 +31,9 @@ PROTOTYPES: ENABLE int shaclose(s) SHA * s +CODE: + RETVAL = shaclose(s); + sv_setiv(SvRV(ST(0)), 0); int shadump(file, s) diff --git a/cpan/Digest-SHA/lib/Digest/SHA.pm b/cpan/Digest-SHA/lib/Digest/SHA.pm index ef5be0af59..9f94136da0 100644 --- a/cpan/Digest-SHA/lib/Digest/SHA.pm +++ b/cpan/Digest-SHA/lib/Digest/SHA.pm @@ -7,7 +7,7 @@ use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); use Fcntl; use integer; -$VERSION = '5.84'; +$VERSION = '5.85'; require Exporter; require DynaLoader; @@ -62,7 +62,7 @@ sub new { sub DESTROY { my $self = shift; - shaclose($$self) if $$self; + if ($$self) { shaclose($$self); $$self = undef } } sub clone { diff --git a/cpan/Digest-SHA/shasum b/cpan/Digest-SHA/shasum index 11da695c4c..381a980552 100644 --- a/cpan/Digest-SHA/shasum +++ b/cpan/Digest-SHA/shasum @@ -4,8 +4,8 @@ ## ## Copyright (C) 2003-2013 Mark Shelor, All Rights Reserved ## - ## Version: 5.84 - ## Sat Mar 9 17:36:08 MST 2013 + ## Version: 5.85 + ## Wed Jun 26 04:05:26 MST 2013 ## shasum SYNOPSIS adapted from GNU Coreutils sha1sum. ## Add an "-a" option for algorithm selection, a "-p" @@ -97,7 +97,7 @@ use strict; use Fcntl; use Getopt::Long; -my $VERSION = "5.84"; +my $VERSION = "5.85"; ## Try to use Digest::SHA. If not installed, use the slower @@ -164,7 +164,7 @@ usage(1, "shasum: --status option used only when verifying checksums\n") if $status && !$check; - ## Default to SHA-1 unless overriden by command line option + ## Default to SHA-1 unless overridden by command line option $alg = 1 unless defined $alg; grep { $_ == $alg } (1, 224, 256, 384, 512, 512224, 512256) @@ -181,7 +181,7 @@ if ($version) { ## Try to figure out if the OS is DOS-like. If it is, ## default to binary mode when reading files, unless - ## explicitly overriden by command line "--text" or + ## explicitly overridden by command line "--text" or ## "--portable" options. my $isDOSish = ($^O =~ /^(MSWin\d\d|os2|dos|mint|cygwin)$/); diff --git a/cpan/Digest-SHA/src/sha.c b/cpan/Digest-SHA/src/sha.c index 6d6fe68109..d989d6ce78 100644 --- a/cpan/Digest-SHA/src/sha.c +++ b/cpan/Digest-SHA/src/sha.c @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2013 Mark Shelor, All Rights Reserved * - * Version: 5.84 - * Sat Mar 9 17:36:08 MST 2013 + * Version: 5.85 + * Wed Jun 26 04:05:26 MST 2013 * */ diff --git a/cpan/Digest-SHA/src/sha.h b/cpan/Digest-SHA/src/sha.h index fb7279eee8..b38b1fd06b 100644 --- a/cpan/Digest-SHA/src/sha.h +++ b/cpan/Digest-SHA/src/sha.h @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2013 Mark Shelor, All Rights Reserved * - * Version: 5.84 - * Sat Mar 9 17:36:08 MST 2013 + * Version: 5.85 + * Wed Jun 26 04:05:26 MST 2013 * */ |