lift isCryptographicallySecure to Annex
Needed for VURL backend. Sponsored-by: Nicholas Golder-Manning on Patreon
This commit is contained in:
parent
55bf01b788
commit
e7b7ea78af
8 changed files with 15 additions and 14 deletions
|
@ -171,9 +171,10 @@ downloadKey urlincludeexclude key _af dest p vc =
|
|||
-- Make sure to pick a backend that is cryptographically
|
||||
-- secure.
|
||||
db <- defaultBackend
|
||||
let b = if isCryptographicallySecure' db
|
||||
then db
|
||||
else defaultHashBackend
|
||||
b <- ifM (isCryptographicallySecure' db)
|
||||
( pure db
|
||||
, pure defaultHashBackend
|
||||
)
|
||||
showSideAction (UnquotedString descChecksum)
|
||||
(hashk, _) <- genKey ks nullMeterUpdate b
|
||||
unless (hashk `elem` eks) $
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue