summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/kiki.hs b/kiki.hs
index 3dc0edd..8e49086 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -1674,7 +1674,7 @@ doImportG doDecrypt db m0 tag fname key = do
1674 SHA1 1674 SHA1
1675 (fingerprint wkun) 1675 (fingerprint wkun)
1676 flip (maybe $ warn "Failed to make signature" >> return uids) 1676 flip (maybe $ warn "Failed to make signature" >> return uids)
1677 (listToMaybe $ signatures_over sig_ov) 1677 (sig_ov >>= listToMaybe . signatures_over)
1678 $ \sig -> do 1678 $ \sig -> do
1679 let om = Map.singleton fname (origin sig (-1)) 1679 let om = Map.singleton fname (origin sig (-1))
1680 trust = Map.empty 1680 trust = Map.empty
@@ -1706,7 +1706,7 @@ makeSig doDecrypt top fname subkey_p tag mbsig = do
1706 let grip = fingerprint wk 1706 let grip = fingerprint wk
1707 addOrigin new_sig = do 1707 addOrigin new_sig = do
1708 flip (maybe $ error "Failed to make signature.") 1708 flip (maybe $ error "Failed to make signature.")
1709 (listToMaybe $ signatures_over new_sig) 1709 (new_sig >>= listToMaybe . signatures_over)
1710 $ \new_sig -> do 1710 $ \new_sig -> do
1711 let mp' = MappedPacket new_sig (Map.singleton fname (origin new_sig (-1))) 1711 let mp' = MappedPacket new_sig (Map.singleton fname (origin new_sig (-1)))
1712 return (mp', Map.empty) 1712 return (mp', Map.empty)
@@ -1738,8 +1738,9 @@ makeSig doDecrypt top fname subkey_p tag mbsig = do
1738 [IssuerPacket subgrip])) 1738 [IssuerPacket subgrip]))
1739 SHA1 1739 SHA1
1740 subgrip 1740 subgrip
1741 let unhashed0 = ( IssuerPacket (fingerprint wk) 1741 let iss = IssuerPacket (fingerprint wk)
1742 : map EmbeddedSignaturePacket (signatures_over back_sig)) 1742 cons_iss back_sig = iss : map EmbeddedSignaturePacket (signatures_over back_sig)
1743 unhashed0 = maybe [iss] cons_iss back_sig
1743 1744
1744 new_sig <- pgpSign (Message [wkun]) 1745 new_sig <- pgpSign (Message [wkun])
1745 (SubkeySignature wk 1746 (SubkeySignature wk
@@ -2212,6 +2213,7 @@ main = do
2212 . keykey)) 2213 . keykey))
2213 vs 2214 vs
2214 additional new_sig = do 2215 additional new_sig = do
2216 new_sig <- maybeToList new_sig
2215 guard $ {- trace (unlines $ [ "selfsigs = "++show (map ((\(_,_,k)->fingerprint k)) selfsigs) 2217 guard $ {- trace (unlines $ [ "selfsigs = "++show (map ((\(_,_,k)->fingerprint k)) selfsigs)
2216 , " for mainkey = "++fingerprint mainpubkey] ) 2218 , " for mainkey = "++fingerprint mainpubkey] )
2217 -} 2219 -}