mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
moved DHKeysPair to Transport
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
class DHKeysPair;
|
||||
|
||||
namespace ntcp
|
||||
{
|
||||
|
||||
@@ -65,6 +67,7 @@ namespace ntcp
|
||||
const size_t NTCP_MAX_MESSAGE_SIZE = 16384;
|
||||
const size_t NTCP_BUFFER_SIZE = 1040; // fits one tunnel message (1028)
|
||||
const int NTCP_TERMINATION_TIMEOUT = 120; // 2 minutes
|
||||
|
||||
class NTCPSession
|
||||
{
|
||||
public:
|
||||
@@ -127,7 +130,7 @@ namespace ntcp
|
||||
boost::asio::ip::tcp::socket m_Socket;
|
||||
boost::asio::deadline_timer m_TerminationTimer;
|
||||
bool m_IsEstablished;
|
||||
i2p::data::DHKeysPair * m_DHKeysPair; // X - for client and Y - for server
|
||||
DHKeysPair * m_DHKeysPair; // X - for client and Y - for server
|
||||
|
||||
i2p::crypto::CBCDecryption m_Decryption;
|
||||
i2p::crypto::CBCEncryption m_Encryption;
|
||||
|
||||
Reference in New Issue
Block a user