aboutsummaryrefslogtreecommitdiff
path: root/Creds.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-02-06 18:25:31 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-02-06 18:25:31 -0400
commit1f76551dce12e7209422ee65980315bb60eb771a (patch)
tree3e5a64062498594b00fb68711edbc49f1acd47b2 /Creds.hs
parenta1e76e7fdcfcd17a690bd49e4a29f88ca83e82b1 (diff)
Fix initremote with encryption=pubkey to work with S3, glacier, webdav, and external special remotes.
Diffstat (limited to 'Creds.hs')
-rw-r--r--Creds.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Creds.hs b/Creds.hs
index 7c300dd07..3bd87a522 100644
--- a/Creds.hs
+++ b/Creds.hs
@@ -51,7 +51,7 @@ setRemoteCredPair' c storage creds
return c
storeconfig key (Just cipher) = do
- s <- liftIO $ encrypt [] cipher
+ s <- liftIO $ encrypt (getGpgEncParams c) cipher
(feedBytes $ L.pack $ encodeCredPair creds)
(readBytes $ return . L.unpack)
return $ M.insert key (toB64 s) c