This commit is contained in:
git@daemon.de
2015-02-24 10:37:35 +01:00
parent e7471e1f6f
commit 766b8496c1
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
NEXT:
1.17: 1.17:
added license to META added license to META

View File

@@ -28,7 +28,7 @@ use Data::Dumper;
use Exporter (); use Exporter ();
use vars qw(@ISA @EXPORT); use vars qw(@ISA @EXPORT);
$Crypt::PWSafe3::VERSION = '1.17'; $Crypt::PWSafe3::VERSION = '1.18';
use Crypt::PWSafe3::Field; use Crypt::PWSafe3::Field;
use Crypt::PWSafe3::HeaderField; use Crypt::PWSafe3::HeaderField;
@@ -298,7 +298,7 @@ sub read {
$this->hmac( $this->readbytes(32) ); $this->hmac( $this->readbytes(32) );
my $calcmac = $this->{hmacer}->digest(); my $calcmac = $this->{hmacer}->digest();
if ($calcmac ne $this->hmac) { if ($calcmac ne $this->hmac) {
croak "File integrity check failed"; croak "File integrity check failed, invalid HMAC";
} }
$this->{fd}->close(); $this->{fd}->close();