propellor spin
This commit is contained in:
parent
3690257a9c
commit
69c39a087b
|
@ -71,9 +71,12 @@ spin host = do
|
||||||
status <- getstatus fromh `catchIO` error "protocol error"
|
status <- getstatus fromh `catchIO` error "protocol error"
|
||||||
case status of
|
case status of
|
||||||
NeedKeyRing -> do
|
NeedKeyRing -> do
|
||||||
putStrLn $ "Sending " ++ keyring ++ " to " ++ host
|
putStr $ "Sending " ++ keyring ++ " to " ++ host ++ "..."
|
||||||
|
hFlush stdout
|
||||||
s <- toB64 <$> readFile keyring
|
s <- toB64 <$> readFile keyring
|
||||||
hPutStrLn toh $ toMarked keyringMarker s
|
hPutStrLn toh $ toMarked keyringMarker s
|
||||||
|
hFlush toh
|
||||||
|
putStrLn "done"
|
||||||
HaveKeyRing -> noop
|
HaveKeyRing -> noop
|
||||||
hPutStrLn toh $ toMarked privDataMarker privdata
|
hPutStrLn toh $ toMarked privDataMarker privdata
|
||||||
hFlush toh
|
hFlush toh
|
||||||
|
|
Loading…
Reference in New Issue