summaryrefslogtreecommitdiff
path: root/KeyRing.hs
diff options
context:
space:
mode:
Diffstat (limited to 'KeyRing.hs')
-rw-r--r--KeyRing.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/KeyRing.hs b/KeyRing.hs
index 1d21ff5..14772d8 100644
--- a/KeyRing.hs
+++ b/KeyRing.hs
@@ -2142,8 +2142,12 @@ performManipulations doDecrypt rt wk manip = do
2142 kd' | kk /= topk = kd 2142 kd' | kk /= topk = kd
2143 | otherwise = kd { keySubKeys = Map.filterWithKey pred $ keySubKeys kd } 2143 | otherwise = kd { keySubKeys = Map.filterWithKey pred $ keySubKeys kd }
2144 pred k _ = k == subk 2144 pred k _ = k == subk
2145 -- TODO: update report with DeletedPacket entries 2145 ps = concat $ maybeToList $ do
2146 return $ KikiSuccess (kd' , report) 2146 SubKey mp sigs <- Map.lookup subk (keySubKeys kd)
2147 return $ packet mp : concatMap (\(p,ts) -> packet p : Map.elems ts) sigs
2148 ctx = InputFileContext (rtSecring rt) (rtPubring rt)
2149 rings = [HomeSec, HomePub] >>= resolveInputFile ctx
2150 return $ KikiSuccess (kd' , report ++ [ (f,DeletedPacket p) | f <- rings, p <- ps ])
2147 2151
2148initializeMissingPEMFiles :: 2152initializeMissingPEMFiles ::
2149 KeyRingOperation 2153 KeyRingOperation