mirror of
https://github.com/Yubico/yubikey-ksm.git
synced 2025-01-20 01:52:17 +01:00
Replaced DIGEST::SHA1 with DIGEST::SHA.
This commit is contained in:
parent
36c077196d
commit
bdda65d4cc
@ -31,7 +31,7 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use DBI;
|
use DBI;
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
use Digest::SHA1;
|
use Digest::SHA;
|
||||||
|
|
||||||
sub usage {
|
sub usage {
|
||||||
print "Usage: $0 [--verbose] [--help]\n";
|
print "Usage: $0 [--verbose] [--help]\n";
|
||||||
@ -87,7 +87,7 @@ my $sth = $dbh->prepare ('SELECT serialnr, publicname, internalname, aeskey '.
|
|||||||
$sth->execute()
|
$sth->execute()
|
||||||
or die "Couldn't execute statement: " . $sth->errstr;
|
or die "Couldn't execute statement: " . $sth->errstr;
|
||||||
|
|
||||||
my $sha1 = Digest::SHA1->new;
|
my $sha1 = Digest::SHA->new(1);
|
||||||
|
|
||||||
my $row;
|
my $row;
|
||||||
while ($row = $sth->fetchrow_hashref()) {
|
while ($row = $sth->fetchrow_hashref()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user