From faf175df2255a279c780bc8b99a5dd1bc41fcbd5 Mon Sep 17 00:00:00 2001 From: James Crayne Date: Tue, 29 May 2018 08:30:30 +0000 Subject: use PublicKey to encode handshake not dhtkey --- src/Network/Tox/Crypto/Handlers.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index 485c5219..9e023b29 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs @@ -415,7 +415,7 @@ freshCryptoSession sessions ncState0 <- atomically $ newTVar Accepted ncTheirBaseNonce0 <- atomically $ newTVar theirBaseNonce n24 <- atomically $ transportNewNonce crypto - state <- lookupSharedSecret crypto key remoteDhtPublicKey n24 + state <- lookupSharedSecret crypto key remotePublicKey n24 newBaseNonce <- atomically $ transportNewNonce crypto mbMyhandshakeData <- newHandShakeData crypto newBaseNonce hp addr let encodeHandshake myhandshakeData = let plain = encodePlain myhandshakeData -- cgit v1.2.3