diff options
author | Julian Andres Klode <jak@debian.org> | 2016-03-13 12:21:09 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-03-13 13:01:14 +0100 |
commit | 51c04562559d0924aa52cc8c9b69901bc8a5c945 (patch) | |
tree | f31a91a41932f61a444c39374afadf43a3484bed /test/integration/test-apt-ftparchive-by-hash | |
parent | e457c94165c9c4dfef8cea7c2f716700d1c84b3f (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 'test/integration/test-apt-ftparchive-by-hash')
-rwxr-xr-x | test/integration/test-apt-ftparchive-by-hash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/test-apt-ftparchive-by-hash b/test/integration/test-apt-ftparchive-by-hash index c7aeea0f9..d08b94290 100755 --- a/test/integration/test-apt-ftparchive-by-hash +++ b/test/integration/test-apt-ftparchive-by-hash @@ -2,7 +2,7 @@ set -e verify_by_hash() { - for hash_gen in SHA1:sha1sum SHA256:sha256sum SHA512:sha512sum; do + for hash_gen in SHA256:sha256sum SHA512:sha512sum; do hash=$(echo ${hash_gen} | cut -f1 -d:) gen=$(echo ${hash_gen} | cut -f2 -d:) testsuccess stat aptarchive/dists/unstable/main/binary-i386/by-hash/$hash/$($gen aptarchive/dists/unstable/main/binary-i386/Packages | cut -f1 -d' ') @@ -18,7 +18,7 @@ TESTDIR="$(readlink -f "$(dirname "$0")")" setupenvironment configarchitecture 'i386' configcompression 'gz' '.' -confighashes 'SHA1' 'SHA256' 'SHA512' +confighashes 'SHA256' 'SHA512' # enable by-hash in apt-ftparchive echo 'APT::FTPArchive::DoByHash "1";' >> aptconfig.conf |