Thread: [Opentnl-cvs] tnl/tnl netConnection.cpp,1.9,1.10
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <mar...@us...> - 2004-08-19 20:25:03
|
Update of /cvsroot/opentnl/tnl/tnl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15513/tnl Modified Files: netConnection.cpp Log Message: Fixed TNL netConnection ping/encryption issues Index: netConnection.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/netConnection.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** netConnection.cpp 3 Jul 2004 00:11:24 -0000 1.9 --- netConnection.cpp 19 Aug 2004 20:24:51 -0000 1.10 *************** *** 214,223 **** writePacket(bstream, note); TNLLogMessageV(LogNetConnection, ("NetConnection %s: END %s - %d bits", mNetAddress.toString(), getClassName(), bstream->getBitPosition() - start) ); ! ! if(!mSymmetricCipher.isNull()) ! { ! mSymmetricCipher->setupCounter(mLastSendSeq, mLastSeqRecvd, packetType, 0); ! bstream->hashAndEncrypt(MessageSignatureBytes, PacketHeaderByteSize, mSymmetricCipher); ! } } } --- 214,222 ---- writePacket(bstream, note); TNLLogMessageV(LogNetConnection, ("NetConnection %s: END %s - %d bits", mNetAddress.toString(), getClassName(), bstream->getBitPosition() - start) ); ! } ! if(!mSymmetricCipher.isNull()) ! { ! mSymmetricCipher->setupCounter(mLastSendSeq, mLastSeqRecvd, packetType, 0); ! bstream->hashAndEncrypt(MessageSignatureBytes, PacketHeaderByteSize, mSymmetricCipher); } } |