diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-05-30 03:32:50 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-05-30 03:32:50 +0000 |
commit | f15998925daca38cb228de98024bb95f7d99123b (patch) | |
tree | 9d95e4f7d54770fdc636054f2c83f3071fa490b2 /src | |
parent | 2f21694c9ef0e94bc3778029ca6fe85f416cc98a (diff) |
comment out base nonce compare on repeat handshake
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index cd227a4d..86b5b138 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs | |||
@@ -556,8 +556,9 @@ updateCryptoSession sessions addr hp session = do | |||
556 | dput XNetCrypto (" ncTheirDHTKey=" ++ show (ncTheirDHTKey session) | 556 | dput XNetCrypto (" ncTheirDHTKey=" ++ show (ncTheirDHTKey session) |
557 | ++ bool "{/=}" "{==}" (ncTheirDHTKey session == hpCookieRemoteDhtkey hp) | 557 | ++ bool "{/=}" "{==}" (ncTheirDHTKey session == hpCookieRemoteDhtkey hp) |
558 | ++ "hpCookieRemoteDhtkey=" ++ show (hpCookieRemoteDhtkey hp)) | 558 | ++ "hpCookieRemoteDhtkey=" ++ show (hpCookieRemoteDhtkey hp)) |
559 | when ( Just ncTheirBaseNonce0 /= hpTheirBaseNonce hp -- XXX: Do we really want to compare base nonce here? | 559 | when ( -- Just ncTheirBaseNonce0 /= hpTheirBaseNonce hp -- XXX: Do we really want to compare base nonce here? |
560 | || ncTheirDHTKey session /= hpCookieRemoteDhtkey hp | 560 | -- || |
561 | ncTheirDHTKey session /= hpCookieRemoteDhtkey hp | ||
561 | ) $ freshCryptoSession sessions addr hp | 562 | ) $ freshCryptoSession sessions addr hp |
562 | else do | 563 | else do |
563 | dput XNetCrypto "updateCryptoSession else clause" | 564 | dput XNetCrypto "updateCryptoSession else clause" |