diff options
author | joe <joe@jerkface.net> | 2014-04-29 02:03:43 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-04-29 02:03:43 -0400 |
commit | fb8a8cbe57562a4de1b3a022fff34bca2d2db5ab (patch) | |
tree | 1ecb0027c95a8e8495e25b47abdcee7292a52ad3 | |
parent | 58f296ea4f61b0f3d7cd00f538d23e956f2d1318 (diff) |
todo comments
-rw-r--r-- | KeyRing.hs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -243,6 +243,7 @@ noManip _ _ = [] | |||
243 | data KeyRingOperation = KeyRingOperation | 243 | data KeyRingOperation = KeyRingOperation |
244 | { kFiles :: Map.Map InputFile StreamInfo | 244 | { kFiles :: Map.Map InputFile StreamInfo |
245 | , kManip :: KeyRingRuntime -> KeyData -> [PacketUpdate]--[KeyRingAddress PacketUpdate] | 245 | , kManip :: KeyRingRuntime -> KeyData -> [PacketUpdate]--[KeyRingAddress PacketUpdate] |
246 | -- TODO: change kManip to [Transform] | ||
246 | , homeSpec :: Maybe String | 247 | , homeSpec :: Maybe String |
247 | } | 248 | } |
248 | 249 | ||
@@ -1335,6 +1336,7 @@ importSecret = Just False | |||
1335 | subkeysOnly :: Maybe Bool | 1336 | subkeysOnly :: Maybe Bool |
1336 | subkeysOnly = Nothing | 1337 | subkeysOnly = Nothing |
1337 | 1338 | ||
1339 | -- TODO: Do we need to memoize this? | ||
1338 | guardAuthentic :: KeyRingRuntime -> KeyData -> Maybe () | 1340 | guardAuthentic :: KeyRingRuntime -> KeyData -> Maybe () |
1339 | guardAuthentic rt keydata = guard (isauth rt keydata) | 1341 | guardAuthentic rt keydata = guard (isauth rt keydata) |
1340 | 1342 | ||
@@ -1728,6 +1730,8 @@ runKeyRing operation = do | |||
1728 | else do | 1730 | else do |
1729 | 1731 | ||
1730 | -- memoizing decrypter | 1732 | -- memoizing decrypter |
1733 | -- TODO: Unspilled keyrings should be usable for decrypting | ||
1734 | -- and signing. | ||
1731 | decrypt <- makeMemoizingDecrypter operation secring pubring | 1735 | decrypt <- makeMemoizingDecrypter operation secring pubring |
1732 | 1736 | ||
1733 | -- merge all keyrings, PEM files, and wallets | 1737 | -- merge all keyrings, PEM files, and wallets |