, canUpgradeKey = Nothing
, fastMigrate = Nothing
, isStableKey = const isstable
- , isCryptographicallySecure = const iscryptographicallysecure
+ , isCryptographicallySecure = iscryptographicallysecure
}
makeBackend' ebname hasext (Left _) = return $ unavailBackend ebname hasext
, canUpgradeKey = Nothing
, fastMigrate = Nothing
, isStableKey = const False
- , isCryptographicallySecure = const False
+ , isCryptographicallySecure = False
}
genKeyExternal :: ExternalBackendName -> HasExt -> KeySource -> MeterUpdate -> Annex Key
, canUpgradeKey = Just needsUpgrade
, fastMigrate = Just trivialMigrate
, isStableKey = const True
- , isCryptographicallySecure = const (cryptographicallySecure hash)
+ , isCryptographicallySecure = cryptographicallySecure hash
}
genBackendE :: Hash -> Backend
-- The content of an url can change at any time, so URL keys are
-- not stable.
, isStableKey = const False
- , isCryptographicallySecure = const False
+ , isCryptographicallySecure = False
}
{- Every unique url has a corresponding key. -}
, canUpgradeKey = Just needsUpgrade
, fastMigrate = Just removeProblemChars
, isStableKey = const True
- , isCryptographicallySecure = const False
+ , isCryptographicallySecure = False
}
{- The key includes the file size, modification time, and the
-- same data.
, isStableKey :: Key -> Bool
-- Checks if a key is verified using a cryptographically secure hash.
- , isCryptographicallySecure :: Key -> Bool
+ , isCryptographicallySecure :: Bool
}
instance Show (BackendA a) where