From 51c04562559d0924aa52cc8c9b69901bc8a5c945 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 13 Mar 2016 12:21:09 +0100 Subject: Do not consider SHA1 usable SHA1 is not reasonably secure anymore, so we should not consider it usable anymore. The test suite is adjusted to account for this. --- apt-pkg/contrib/hashes.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-pkg/contrib/hashes.cc') diff --git a/apt-pkg/contrib/hashes.cc b/apt-pkg/contrib/hashes.cc index 5c0023dc7..f2b91501e 100644 --- a/apt-pkg/contrib/hashes.cc +++ b/apt-pkg/contrib/hashes.cc @@ -133,7 +133,8 @@ APT_PURE bool HashString::usable() const /*{{{*/ { return ( (Type != "Checksum-FileSize") && - (Type != "MD5Sum") + (Type != "MD5Sum") && + (Type != "SHA1") ); } /*}}}*/ -- cgit v1.2.3