diff options
author | joe <joe@jerkface.net> | 2014-04-15 17:35:11 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-04-15 17:35:11 -0400 |
commit | e94ff6c6c0f1157c0dc738f7aedeefabc99cd947 (patch) | |
tree | 81b31bc96342a21ec850429649a877f334eb17f6 /kiki.hs | |
parent | 1435653a92cf5db9e861dafc430b7f0d2b64e51a (diff) |
more progress on writeRingKeys
Diffstat (limited to 'kiki.hs')
-rw-r--r-- | kiki.hs | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -766,18 +766,6 @@ flattenKeys isPublic db = Message $ concatMap (map packet . flattenTop "" isPubl | |||
766 | isSecret _ = False | 766 | isSecret _ = False |
767 | 767 | ||
768 | 768 | ||
769 | ifSecret (SecretKeyPacket {}) t f = t | ||
770 | ifSecret _ t f = f | ||
771 | |||
772 | showPacket :: Packet -> String | ||
773 | showPacket 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 | ||
779 | showPacket0 p = concat . take 1 $ words (show p) | ||
780 | |||
781 | writeOutKeyrings :: Map.Map FilePath t -> KeyDB -> IO () | 769 | writeOutKeyrings :: Map.Map FilePath t -> KeyDB -> IO () |
782 | writeOutKeyrings lkmap db = do | 770 | writeOutKeyrings lkmap db = do |
783 | let ks = Map.elems db | 771 | let ks = Map.elems db |