mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-02 13:42:29 +02:00
English corrections.
This commit is contained in:
parent
7c924e13d9
commit
dd88e13b95
23 changed files with 48 additions and 48 deletions
|
@ -548,7 +548,7 @@ namespace transport
|
|||
{
|
||||
if (!m_NextMessage) // new message, header expected
|
||||
{
|
||||
// descrypt header and extract length
|
||||
// decrypt header and extract length
|
||||
uint8_t buf[16];
|
||||
m_Decryption.Decrypt (encrypted, buf);
|
||||
uint16_t dataSize = bufbe16toh (buf);
|
||||
|
@ -586,7 +586,7 @@ namespace transport
|
|||
if (CryptoPP::Adler32().VerifyDigest (m_NextMessage->buf + m_NextMessageOffset - 4, m_NextMessage->buf, m_NextMessageOffset - 4))
|
||||
m_Handler.PutNextMessage (m_NextMessage);
|
||||
else
|
||||
LogPrint (eLogWarning, "Incorrect adler checksum of NTCP message. Dropped");
|
||||
LogPrint (eLogWarning, "Incorrect Adler checksum of NTCP message. Dropped");
|
||||
m_NextMessage = nullptr;
|
||||
}
|
||||
return true;
|
||||
|
@ -703,7 +703,7 @@ namespace transport
|
|||
{
|
||||
if (ecode != boost::asio::error::operation_aborted)
|
||||
{
|
||||
LogPrint ("No activity fo ", NTCP_TERMINATION_TIMEOUT, " seconds");
|
||||
LogPrint ("No activity for ", NTCP_TERMINATION_TIMEOUT, " seconds");
|
||||
//Terminate ();
|
||||
m_Socket.close ();// invoke Terminate () from HandleReceive
|
||||
}
|
||||
|
|
|
@ -517,7 +517,7 @@ namespace transport
|
|||
}
|
||||
else
|
||||
{
|
||||
// ecrypt with Alice's intro key
|
||||
// encrypt with Alice's intro key
|
||||
uint8_t iv[16];
|
||||
CryptoPP::RandomNumberGenerator& rnd = i2p::context.GetRandomNumberGenerator ();
|
||||
rnd.GenerateBlock (iv, 16); // random iv
|
||||
|
@ -809,7 +809,7 @@ namespace transport
|
|||
{
|
||||
if (ecode != boost::asio::error::operation_aborted)
|
||||
{
|
||||
LogPrint ("SSU no activity fo ", SSU_TERMINATION_TIMEOUT, " seconds");
|
||||
LogPrint ("SSU no activity for ", SSU_TERMINATION_TIMEOUT, " seconds");
|
||||
Failed ();
|
||||
}
|
||||
}
|
||||
|
@ -955,7 +955,7 @@ namespace transport
|
|||
|
||||
void SSUSession::SendPeerTest (uint32_t nonce, uint32_t address, uint16_t port,
|
||||
const uint8_t * introKey, bool toAddress, bool sendAddress)
|
||||
// toAddress is true for Alice<->Chalie communications only
|
||||
// toAddress is true for Alice<->Charlie communications only
|
||||
// sendAddress is false if message comes from Alice
|
||||
{
|
||||
uint8_t buf[80 + 18] = {};
|
||||
|
@ -1056,7 +1056,7 @@ namespace transport
|
|||
}
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
LogPrint (eLogError, "SSU send session destoriyed exception ", ex.what ());
|
||||
LogPrint (eLogError, "SSU send session destroyed exception ", ex.what ());
|
||||
}
|
||||
LogPrint (eLogDebug, "SSU session destroyed sent");
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace transport
|
|||
while ((num = m_QueueSize - m_Queue.size ()) > 0)
|
||||
CreateDHKeysPairs (num);
|
||||
std::unique_lock<std::mutex> l(m_AcquiredMutex);
|
||||
m_Acquired.wait (l); // wait for element gets aquired
|
||||
m_Acquired.wait (l); // wait for element gets acquired
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue