summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-03-13 12:21:09 +0100
committerJulian Andres Klode <jak@debian.org>2016-03-13 13:01:14 +0100
commit51c04562559d0924aa52cc8c9b69901bc8a5c945 (patch)
treef31a91a41932f61a444c39374afadf43a3484bed /apt-pkg
parente457c94165c9c4dfef8cea7c2f716700d1c84b3f (diff)
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.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/hashes.cc3
1 files changed, 2 insertions, 1 deletions
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")
);
}
/*}}}*/