summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--KeyRing.hs5
-rw-r--r--kiki.hs8
2 files changed, 6 insertions, 7 deletions
diff --git a/KeyRing.hs b/KeyRing.hs
index 52635be..58a2d01 100644
--- a/KeyRing.hs
+++ b/KeyRing.hs
@@ -158,7 +158,7 @@ data InputFile = HomeSec
158 | FileDesc Posix.Fd 158 | FileDesc Posix.Fd
159 deriving (Eq,Ord) 159 deriving (Eq,Ord)
160 160
161type UsageTag = String 161-- type UsageTag = String
162type Initializer = String 162type Initializer = String
163type PassWordFile = InputFile 163type PassWordFile = InputFile
164 164
@@ -167,7 +167,7 @@ type PassWordFile = InputFile
167-- the KF_Match fill/spill KeyFilter styles. The parameter 167-- the KF_Match fill/spill KeyFilter styles. The parameter
168-- to KeyRingFile will be subsumbed by kPassphrases 168-- to KeyRingFile will be subsumbed by kPassphrases
169data FileType = KeyRingFile (Maybe PassWordFile) 169data FileType = KeyRingFile (Maybe PassWordFile)
170 | PEMFile UsageTag 170 | PEMFile
171 | WalletFile -- (Maybe UsageTag) 171 | WalletFile -- (Maybe UsageTag)
172 | Hosts 172 | Hosts
173 173
@@ -242,7 +242,6 @@ noManip _ _ = []
242 242
243data KeyRingOperation = KeyRingOperation 243data KeyRingOperation = KeyRingOperation
244 { kFiles :: Map.Map InputFile StreamInfo 244 { kFiles :: Map.Map InputFile StreamInfo
245 , kImports :: Map.Map InputFile (KeyRingRuntime -> KeyData -> Maybe Bool)
246 , kManip :: KeyRingRuntime -> KeyData -> [PacketUpdate]--[KeyRingAddress PacketUpdate] 245 , kManip :: KeyRingRuntime -> KeyData -> [PacketUpdate]--[KeyRingAddress PacketUpdate]
247 , homeSpec :: Maybe String 246 , homeSpec :: Maybe String
248 } 247 }
diff --git a/kiki.hs b/kiki.hs
index d695afc..ff21529 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -816,11 +816,13 @@ sync bExport bImport bSecret cmdarg args_raw = do
816 in if bExport 816 in if bExport
817 then (ArgFile path, StreamInfo { fill = KF_Match usage 817 then (ArgFile path, StreamInfo { fill = KF_Match usage
818 , spill = KF_Match usage 818 , spill = KF_Match usage
819 , typ = PEMFile usage 819 , typ = PEMFile
820 , access = Sec 820 , access = Sec
821 , initializer = cmd' }) 821 , initializer = cmd' })
822 else if isNothing cmd' 822 else if isNothing cmd'
823 then (ArgFile path, buildStreamInfo KF_None (PEMFile usage)) 823 then ( ArgFile path
824 , (buildStreamInfo KF_None PEMFile)
825 { spill = KF_Match usage })
824 else error "Unexpected PEM file initializer." 826 else error "Unexpected PEM file initializer."
825 walts = map (\fname -> ( ArgFile fname 827 walts = map (\fname -> ( ArgFile fname
826 , (buildStreamInfo reftyp WalletFile) { access = Sec })) 828 , (buildStreamInfo reftyp WalletFile) { access = Sec }))
@@ -863,7 +865,6 @@ sync bExport bImport bSecret cmdarg args_raw = do
863 ++ if bSecret then pems else [] 865 ++ if bSecret then pems else []
864 ++ if bSecret then walts else [] 866 ++ if bSecret then walts else []
865 ++ hosts 867 ++ hosts
866 , kImports = Map.fromList [ ( HomePub, importStyle ) ]
867 , kManip = maybe noManip (const doAutosign) $ Map.lookup "--autosign" margs 868 , kManip = maybe noManip (const doAutosign) $ Map.lookup "--autosign" margs
868 , homeSpec = homespec 869 , homeSpec = homespec
869 } 870 }
@@ -966,7 +967,6 @@ kiki "show" args = do
966 ++ pems 967 ++ pems
967 ++ walts 968 ++ walts
968 ++ hosts 969 ++ hosts
969 , kImports = Map.empty
970 , kManip = noManip 970 , kManip = noManip
971 , homeSpec = homespec 971 , homeSpec = homespec
972 } 972 }