summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-04-15 17:35:11 -0400
committerjoe <joe@jerkface.net>2014-04-15 17:35:11 -0400
commite94ff6c6c0f1157c0dc738f7aedeefabc99cd947 (patch)
tree81b31bc96342a21ec850429649a877f334eb17f6 /kiki.hs
parent1435653a92cf5db9e861dafc430b7f0d2b64e51a (diff)
more progress on writeRingKeys
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs12
1 files changed, 0 insertions, 12 deletions
diff --git a/kiki.hs b/kiki.hs
index 41e6e6b..66e3e4f 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -766,18 +766,6 @@ flattenKeys isPublic db = Message $ concatMap (map packet . flattenTop "" isPubl
766 isSecret _ = False 766 isSecret _ = False
767 767
768 768
769ifSecret (SecretKeyPacket {}) t f = t
770ifSecret _ t f = f
771
772showPacket :: Packet -> String
773showPacket p | isKey p = (if is_subkey p
774 then showPacket0 p
775 else ifSecret p "----Secret-----" "----Public-----")
776 ++ " "++show (key_algorithm p)++" "++fingerprint p
777 | isUserID p = showPacket0 p ++ " " ++ show (uidkey p)
778 | otherwise = showPacket0 p
779showPacket0 p = concat . take 1 $ words (show p)
780
781writeOutKeyrings :: Map.Map FilePath t -> KeyDB -> IO () 769writeOutKeyrings :: Map.Map FilePath t -> KeyDB -> IO ()
782writeOutKeyrings lkmap db = do 770writeOutKeyrings lkmap db = do
783 let ks = Map.elems db 771 let ks = Map.elems db