summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Network/Tox/DHT/Handlers.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/Tox/DHT/Handlers.hs b/src/Network/Tox/DHT/Handlers.hs
index 091374f5..57fc1d57 100644
--- a/src/Network/Tox/DHT/Handlers.hs
+++ b/src/Network/Tox/DHT/Handlers.hs
@@ -268,7 +268,7 @@ createCookie crypto ni remoteUserKey = do
268 let dta = encodePlain $ CookieData 268 let dta = encodePlain $ CookieData
269 { cookieTime = timestamp 269 { cookieTime = timestamp
270 , longTermKey = remoteUserKey 270 , longTermKey = remoteUserKey
271 , dhtKey = transportPublic crypto 271 , dhtKey = id2key $ nodeId ni -- transportPublic crypto
272 } 272 }
273 edta = encryptSymmetric sym n24 dta 273 edta = encryptSymmetric sym n24 dta
274 dput XNetCrypto $ "Created cookie with n24 = 0x" ++ show n24 ++ "\n sym=" ++ show sym 274 dput XNetCrypto $ "Created cookie with n24 = 0x" ++ show n24 ++ "\n sym=" ++ show sym
@@ -285,7 +285,7 @@ createCookieSTM now crypto ni remoteUserKey = do
285 let dta = encodePlain $ CookieData 285 let dta = encodePlain $ CookieData
286 { cookieTime = timestamp 286 { cookieTime = timestamp
287 , longTermKey = remoteUserKey 287 , longTermKey = remoteUserKey
288 , dhtKey = transportPublic crypto 288 , dhtKey = id2key $ nodeId ni -- transportPublic crypto
289 } 289 }
290 edta = encryptSymmetric sym n24 dta 290 edta = encryptSymmetric sym n24 dta
291 dmsg $ "(createCookieSTM) Created cookie with n24 = 0x" ++ show n24 ++ "\n sym=" ++ show sym 291 dmsg $ "(createCookieSTM) Created cookie with n24 = 0x" ++ show n24 ++ "\n sym=" ++ show sym