diff options
Diffstat (limited to 'KeyRing.hs')
-rw-r--r-- | KeyRing.hs | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1519,7 +1519,14 @@ doImport doDecrypt db (fname,subspec,ms,_) = do | |||
1519 | if (not (null tailms) || null m0) | 1519 | if (not (null tailms) || null m0) |
1520 | then return $ AmbiguousKeySpec fname | 1520 | then return $ AmbiguousKeySpec fname |
1521 | else do | 1521 | else do |
1522 | r <- doImportG doDecrypt db m0 [mkUsage tag] fname key | 1522 | let kk = keykey key |
1523 | cs = filter (\c -> kk==keykey (pcertKey c)) certs | ||
1524 | blobs = map mkCertNotation $ nub $ map pcertBlob cs | ||
1525 | mkCertNotation bs = NotationDataPacket | ||
1526 | { human_readable = False | ||
1527 | , notation_name = "x509cert@" | ||
1528 | , notation_value = Char8.unpack bs } | ||
1529 | r <- doImportG doDecrypt db m0 (mkUsage tag:blobs) fname key | ||
1523 | try r $ \(db',report') -> do | 1530 | try r $ \(db',report') -> do |
1524 | return $ KikiSuccess (db',report++report') | 1531 | return $ KikiSuccess (db',report++report') |
1525 | 1532 | ||