1 Author: Salvatore Bonaccorso <carnil@debian.org>
2 Description: use Digest::SHA for utils/sha1pass (Closes: #625812).
4 diff -Naurp syslinux.orig/utils/sha1pass syslinux/utils/sha1pass
5 --- syslinux.orig/utils/sha1pass
6 +++ syslinux/utils/sha1pass
16 @@ -29,6 +29,6 @@ sub random_bytes($) {
17 unless (defined($salt)) {
18 $salt = MIME::Base64::encode(random_bytes(6), '');
20 -$pass = Digest::SHA1::sha1_base64($salt, $pass);
21 +$pass = Digest::SHA::sha1_base64($salt, $pass);
23 print '$4$', $salt, '$', $pass, "\$\n";