summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-10-30 23:29:35 -0400
committerjoe <joe@jerkface.net>2013-10-30 23:29:35 -0400
commitb82eaca1a2069f5c1981cdebb71538b344021eb7 (patch)
treeca5b3ae731a54e2377792d867713b4fd7dc838fc
parent0e478f8505d60ecaeefe55e23e2d8e824e44b9bd (diff)
Disabled partially-implemented decrypt command.
-rw-r--r--keys.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/keys.hs b/keys.hs
index 7553ea3..f8f1e2b 100644
--- a/keys.hs
+++ b/keys.hs
@@ -733,9 +733,11 @@ data Arguments =
733 , output :: FilePath } 733 , output :: FilePath }
734 | PemFP { homedir :: Maybe FilePath 734 | PemFP { homedir :: Maybe FilePath
735 , seckey :: String } 735 , seckey :: String }
736 {-
736 | Decrypt { homedir :: Maybe FilePath 737 | Decrypt { homedir :: Maybe FilePath
737 , passphrase_fd :: Maybe Int 738 , passphrase_fd :: Maybe Int
738 , output :: FilePath } 739 , output :: FilePath }
740 -}
739 deriving (Show, Data, Typeable) 741 deriving (Show, Data, Typeable)
740 742
741getPassphrase cmd = 743getPassphrase cmd =
@@ -768,6 +770,7 @@ main = do
768 [ "Copies the first file to the second while adding" 770 [ "Copies the first file to the second while adding"
769 , " signatures for tor-style uids that match" 771 , " signatures for tor-style uids that match"
770 , " cross-certified keys." ] 772 , " cross-certified keys." ]
773 {-
771 , Decrypt HOMEOPTION 774 , Decrypt HOMEOPTION
772 (def &= opt ("passphrase"::String) 775 (def &= opt ("passphrase"::String)
773 &= typ "FD" 776 &= typ "FD"
@@ -778,6 +781,7 @@ main = do
778 &= (help . concat) 781 &= (help . concat)
779 [ "Remove password protection from the working keyring" 782 [ "Remove password protection from the working keyring"
780 , " and save the result into the given file."] 783 , " and save the result into the given file."]
784 -}
781 , Add HOMEOPTION 785 , Add HOMEOPTION
782 (def &= opt ("passphrase"::String) 786 (def &= opt ("passphrase"::String)
783 &= typ "FD" 787 &= typ "FD"
@@ -997,6 +1001,7 @@ main = do
997 bs = encode (Message pub) 1001 bs = encode (Message pub)
998 L.writeFile (output cmd) bs 1002 L.writeFile (output cmd) bs
999 1003
1004 {-
1000 doCmd cmd@(Decrypt {}) = do 1005 doCmd cmd@(Decrypt {}) = do
1001 ( homedir -- e3ozbhvej4jvlu43.onion/gpg/gnupghome 1006 ( homedir -- e3ozbhvej4jvlu43.onion/gpg/gnupghome
1002 , sec -- e3ozbhvej4jvlu43.onion/gpg/gnupghome/secring.gpg 1007 , sec -- e3ozbhvej4jvlu43.onion/gpg/gnupghome/secring.gpg
@@ -1016,6 +1021,7 @@ main = do
1016 Just wk -> do 1021 Just wk -> do
1017 putStrLn $ "wk = " ++ fingerprint wk 1022 putStrLn $ "wk = " ++ fingerprint wk
1018 -} 1023 -}
1024 -}
1019 1025
1020 doCmd cmd@(Add {}) = do 1026 doCmd cmd@(Add {}) = do
1021 ( homedir -- e3ozbhvej4jvlu43.onion/gpg/gnupghome 1027 ( homedir -- e3ozbhvej4jvlu43.onion/gpg/gnupghome