mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
create LeaseSet encryption key per tunnel pool
This commit is contained in:
parent
3313a5af5c
commit
d7084e379f
5 changed files with 20 additions and 17 deletions
|
@ -20,9 +20,12 @@ namespace tunnel
|
|||
{
|
||||
public:
|
||||
|
||||
TunnelPool (i2p::data::LocalDestination * owner, int numTunnels = 5);
|
||||
TunnelPool (i2p::data::LocalDestination * localDestination, int numTunnels = 5);
|
||||
~TunnelPool ();
|
||||
|
||||
const uint8_t * GetEncryptionPrivateKey () const { return m_EncryptionPrivateKey; };
|
||||
const uint8_t * GetEncryptionPublicKey () const { return m_EncryptionPublicKey; };
|
||||
|
||||
void CreateTunnels ();
|
||||
void TunnelCreated (InboundTunnel * createdTunnel);
|
||||
void TunnelExpired (InboundTunnel * expiredTunnel);
|
||||
|
@ -34,7 +37,8 @@ namespace tunnel
|
|||
|
||||
private:
|
||||
|
||||
i2p::data::LocalDestination * m_Owner;
|
||||
uint8_t m_EncryptionPublicKey[256], m_EncryptionPrivateKey[256];
|
||||
i2p::data::LocalDestination * m_LocalDestination;
|
||||
int m_NumTunnels;
|
||||
std::set<InboundTunnel *, TunnelCreationTimeCmp> m_InboundTunnels; // recent tunnel appears first
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue