Browse Source

whitespace cleanup

pull/1122/head
Jeff Becker 7 years ago
parent
commit
cd59ca8376
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
  1. 1
      libi2pd/CryptoWorker.h
  2. 3
      libi2pd/NTCPSession.cpp
  3. 1
      libi2pd/NTCPSession.h

1
libi2pd/CryptoWorker.h

@ -73,7 +73,6 @@ namespace worker @@ -73,7 +73,6 @@ namespace worker
mtx_t queue_mutex;
cond_t condition;
bool stop;
};
}
}

3
libi2pd/NTCPSession.cpp

@ -202,7 +202,8 @@ namespace transport @@ -202,7 +202,8 @@ namespace transport
m_Encryption.SetIV (y + 240);
m_Decryption.SetIV (m_Establisher->phase1.HXxorHI + 16);
m_Encryption.Encrypt ((uint8_t *)&m_Establisher->phase2.encrypted, sizeof(m_Establisher->phase2.encrypted), (uint8_t *)&m_Establisher->phase2.encrypted);
boost::asio::async_write(m_Socket, boost::asio::buffer (&m_Establisher->phase2, sizeof (NTCPPhase2)), boost::asio::transfer_all(), std::bind(&NTCPSession::HandlePhase2Sent, shared_from_this(), std::placeholders::_1, std::placeholders::_2, tsB));
boost::asio::async_write(m_Socket, boost::asio::buffer (&m_Establisher->phase2, sizeof (NTCPPhase2)), boost::asio::transfer_all(),
std::bind(&NTCPSession::HandlePhase2Sent, shared_from_this(), std::placeholders::_1, std::placeholders::_2, tsB));
}
void NTCPSession::HandlePhase2Sent (const boost::system::error_code& ecode, std::size_t bytes_transferred, uint32_t tsB)

1
libi2pd/NTCPSession.h

@ -177,7 +177,6 @@ namespace transport @@ -177,7 +177,6 @@ namespace transport
{
m_CryptoPool->Offer({conn, work});
}
private:
/** @brief return true for hard limit */

Loading…
Cancel
Save