webapp: Initial support for setting up encrypted removable drives.
No support yet for generating new gpg keys. No support yet for adding existing encrypted repos from removable drives.
This commit is contained in:
parent
f53526501d
commit
b37aad6c06
9 changed files with 93 additions and 27 deletions
|
@ -75,7 +75,7 @@ withExpandableNote field (toggle, note) = withNote field $ [whamlet|
|
|||
where
|
||||
ident = "toggle_" ++ toggle
|
||||
|
||||
data EnableEncryption = SharedEncryption | NoEncryption
|
||||
data EnableEncryption = HybridEncryption | SharedEncryption | NoEncryption
|
||||
deriving (Eq)
|
||||
|
||||
{- Adds a check box to an AForm to control encryption. -}
|
||||
|
@ -96,3 +96,4 @@ enableEncryptionField = areq (selectFieldList choices) "Encryption" (Just Shared
|
|||
configureEncryption :: EnableEncryption -> (RemoteConfigKey, String)
|
||||
configureEncryption SharedEncryption = ("encryption", "shared")
|
||||
configureEncryption NoEncryption = ("encryption", "none")
|
||||
configureEncryption HybridEncryption = ("encryption", "hybrid")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue