From 01a60bfb0a6233ab0634bfa80a2ef2e36987ff8c Mon Sep 17 00:00:00 2001 From: James Crayne Date: Wed, 30 May 2018 03:47:29 +0000 Subject: FIXME comment in cryptoNetHandler --- src/Network/Tox/Crypto/Handlers.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Network/Tox') diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index caf35a28..9567ea87 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs @@ -503,6 +503,10 @@ cryptoNetHandler sessions addr (NetHandshake (Handshake (Cookie n24 ecookie) non symkey <- atomically $ transportSymmetric crypto now <- getPOSIXTime lr <- fmap join . sequence $ do -- Either Monad + -- TODO: XXX: FIXME: + -- The following call to decryptSymmetric is failing every time, + -- including when uTox tries to connect + -- Possibly my cookies are backwards? (CookieData cookieTime remotePubkey remoteDhtkey) <- (decodePlain =<< decryptSymmetric symkey n24 ecookie) Right $ do -- IO Monad decrypted <- anyRight seckeys $ \key -> do -- cgit v1.2.3