Open robert-scheck opened 2 years ago
A slightly simpler patch is used in Debian as well: https://salsa.debian.org/debian/razor/-/blob/debian/1%252.85-7/debian/patches/use-Digest-SHA.patch
A slightly simpler patch is used in Debian as well: https://salsa.debian.org/debian/razor/-/blob/debian/1%252.85-7/debian/patches/use-Digest-SHA.patch
Yes, however the Debian patch does not provide any backwards compatibility, which may or may not be desired by upstream.
A slightly simpler patch is used in Debian as well: https://salsa.debian.org/debian/razor/-/blob/debian/1%252.85-7/debian/patches/use-Digest-SHA.patch
Yes, however the Debian patch does not provide any backwards compatibility, which may or may not be desired by upstream.
Indeed, I just ran into this while hacking on #13 and wanted to add this data point that most people probably use this change in some way already.
Switch from
Digest::SHA1
toDigest::SHA
, because:Digest::SHA
is a bit faster thanDigest::SHA1
,Digest::SHA1
has been removed from some Linux distributions,Digest::SHA
is a core library (as of Perl >= 5.10.0) andDigest::SHA1
is not (and never will be). See also:Original author: Warren Togami (wtogami@redhat.com)