From bc4016065f00af1b77c6fa1dedb5c4c22158b9d8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Feb 2015 13:41:26 -0400 Subject: Remove support for building without cryptohash. This will prevent backporting to wheezy, but it's time to simplify the code. --- Backend/Hash.hs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Backend') diff --git a/Backend/Hash.hs b/Backend/Hash.hs index 82763a9be..6c240638f 100644 --- a/Backend/Hash.hs +++ b/Backend/Hash.hs @@ -32,9 +32,7 @@ type HashSize = Int hashes :: [Hash] hashes = concat [ map SHAHash [256, 1, 512, 224, 384] -#ifdef WITH_CRYPTOHASH , map SkeinHash [256, 512] -#endif ] {- The SHA256E backend is the default, so genBackendE comes first. -} @@ -178,10 +176,8 @@ shaHasher hashsize filesize skeinHasher :: HashSize -> (L.ByteString -> String) skeinHasher hashsize -#ifdef WITH_CRYPTOHASH | hashsize == 256 = show . skein256 | hashsize == 512 = show . skein512 -#endif | otherwise = error $ "unsupported skein size " ++ show hashsize {- A varient of the SHA256E backend, for testing that needs special keys -- cgit v1.2.3