diff options
author | Joey Hess <joey@kitenet.net> | 2011-04-17 18:18:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-04-17 18:18:27 -0400 |
commit | 86f7feb2784221459d4015b0d70f537dbf2e9bb7 (patch) | |
tree | 3eb005b9a1c98fe24494ec407adb59323eaabe94 /Remote | |
parent | a91a51fc03a68f2a5ede6df5182471f6ebfcc037 (diff) |
initremote: show gpg keys
Diffstat (limited to 'Remote')
-rw-r--r-- | Remote/Encryptable.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Remote/Encryptable.hs b/Remote/Encryptable.hs index 11df2673c..493ff1214 100644 --- a/Remote/Encryptable.hs +++ b/Remote/Encryptable.hs @@ -27,11 +27,12 @@ encryptionSetup c = (Just "none", Nothing) -> return c (Just "none", Just _) -> error "Cannot change encryption type of existing remote." (Nothing, Just _) -> return c - (Just _, Nothing) -> use $ genCipher c - (Just _, Just v) -> use $ updateCipher c v + (Just _, Nothing) -> use "encryption setup" $ genCipher c + (Just _, Just v) -> use "encryption updated" $ updateCipher c v where - use a = do + use m a = do cipher <- liftIO a + showNote $ m ++ " " ++ describeCipher cipher return $ M.delete "encryption" $ storeCipher c cipher {- Modifies a Remote to support encryption. |