summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Network/Tox/Crypto/Handlers.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs
index 4d34701a..6f440ea5 100644
--- a/src/Network/Tox/Crypto/Handlers.hs
+++ b/src/Network/Tox/Crypto/Handlers.hs
@@ -1083,12 +1083,6 @@ sessionPacketH sessions addrRaw (CryptoPacket nonce16 encrypted) = do
1083 lr <- fmap join $ sequence $ do -- Either Monad -- 1083 lr <- fmap join $ sequence $ do -- Either Monad --
1084 pubkey <- maybeToEither mbpublickey 1084 pubkey <- maybeToEither mbpublickey
1085 Right $ do -- IO Monad 1085 Right $ do -- IO Monad
1086 dput XNetCrypto $ "(NetCrypto)sessionPacketH: pubkey = " ++ show (key2id $ pubkey)
1087 dput XNetCrypto $ "(NetCrypto)sessionPacketH: theirBaseNonce = " ++ show theirBaseNonce
1088 dput XNetCrypto $ "(NetCrypto)sessionPacketH: tempNonce = " ++ show tempNonce
1089 ++ " nonce16=" ++ printf "0x%x" nonce16 ++ " last2bytes =" ++ printf "0x%x" (last2Bytes theirBaseNonce)
1090 dput XNetCrypto $ "(NetCrypto)sessionPacketH: mySession public=" ++ show (key2id $ toPublic ncSessionSecret)
1091 dput XNetCrypto $ "(NetCrypto)sessionPacketH: theirSession public=" ++ show (key2id $ pubkey)
1092 secret <- lookupSharedSecret crypto ncSessionSecret pubkey tempNonce 1086 secret <- lookupSharedSecret crypto ncSessionSecret pubkey tempNonce
1093 let step1 = decrypt secret encrypted 1087 let step1 = decrypt secret encrypted
1094 case step1 of 1088 case step1 of
@@ -1476,6 +1470,7 @@ handlePacketRequest session (CryptoData { bufferStart=num
1476 ps <- atomically $ PQ.getRequested getOutGoingParam pktoq num bs 1470 ps <- atomically $ PQ.getRequested getOutGoingParam pktoq num bs
1477 let resend (Just (n,pkt)) = sendSessionPacket (ncAllSessions session) addr pkt 1471 let resend (Just (n,pkt)) = sendSessionPacket (ncAllSessions session) addr pkt
1478 resend _ = return () 1472 resend _ = return ()
1473 dput XNetCrypto ("Re-Sending Packets: " ++ show (map fst $ catMaybes ps))
1479 mapM_ resend ps 1474 mapM_ resend ps
1480 _ -> return () 1475 _ -> return ()
1481 1476