summaryrefslogtreecommitdiff
path: root/src/Network/Tox/DHT/Handlers.hs
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-05-29 02:03:41 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-05-29 02:03:41 +0000
commitefc45ad4c240529913e4f7d4f0c9f880cba6c0f9 (patch)
tree3abd53a933a6dd068a77f18d80623b314c1ecdbc /src/Network/Tox/DHT/Handlers.hs
parent4728116433ddd449dc4c654847ed2f35a38605db (diff)
Show instance for SymmetricKey, more debug prints
Diffstat (limited to 'src/Network/Tox/DHT/Handlers.hs')
-rw-r--r--src/Network/Tox/DHT/Handlers.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Network/Tox/DHT/Handlers.hs b/src/Network/Tox/DHT/Handlers.hs
index 327659a9..42937b89 100644
--- a/src/Network/Tox/DHT/Handlers.hs
+++ b/src/Network/Tox/DHT/Handlers.hs
@@ -231,6 +231,7 @@ createCookie crypto ni remoteUserKey = do
231 , dhtKey = transportPublic crypto 231 , dhtKey = transportPublic crypto
232 } 232 }
233 edta = encryptSymmetric sym n24 dta 233 edta = encryptSymmetric sym n24 dta
234 hPutStrLn stderr $ "Created cookie with n24 = 0x" ++ show n24 ++ "\n sym=" ++ show sym
234 return $ Cookie n24 edta 235 return $ Cookie n24 edta
235 236
236cookieRequestH :: TransportCrypto -> NodeInfo -> CookieRequest -> IO Cookie 237cookieRequestH :: TransportCrypto -> NodeInfo -> CookieRequest -> IO Cookie