summaryrefslogtreecommitdiff
path: root/src/Network/Tox.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r--src/Network/Tox.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 69982c81..5ad9c041 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -112,6 +112,7 @@ import qualified Data.HashMap.Strict as HashMap
112import Data.HashMap.Strict (HashMap) 112import Data.HashMap.Strict (HashMap)
113import qualified Data.Map.Strict as Map 113import qualified Data.Map.Strict as Map
114import Control.Concurrent (threadDelay) 114import Control.Concurrent (threadDelay)
115import DPut
115 116
116 117
117newCrypto :: IO TransportCrypto 118newCrypto :: IO TransportCrypto
@@ -321,6 +322,7 @@ netCryptoWithBackoff millisecs tox myseckey theirpubkey = do
321 , hpTheirSessionKeyPublic = error "netCrypto: Unreachable! hpTheirSessionKeyPublic" 322 , hpTheirSessionKeyPublic = error "netCrypto: Unreachable! hpTheirSessionKeyPublic"
322 } 323 }
323 n24' <- atomically $ transportNewNonce crypto 324 n24' <- atomically $ transportNewNonce crypto
325 dput XNetCrypto ("Handshake Nonce24: " <> show n24')
324 state <- lookupSharedSecret crypto myseckey theirDhtKey n24' 326 state <- lookupSharedSecret crypto myseckey theirDhtKey n24'
325 newBaseNonce <- atomically $ transportNewNonce crypto 327 newBaseNonce <- atomically $ transportNewNonce crypto
326 mbMyhandshakeData <- newHandShakeData crypto newBaseNonce hp saddr 328 mbMyhandshakeData <- newHandShakeData crypto newBaseNonce hp saddr