moved encryption keys from TunnelPool to StreamingDestination

This commit is contained in:
orignal 2014-04-01 18:58:47 -04:00
parent 9f0c0b3b35
commit c600be59b1
6 changed files with 16 additions and 9 deletions

View file

@ -139,6 +139,8 @@ namespace stream
// implements LocalDestination
void UpdateLeaseSet ();
const i2p::data::IdentHash& GetIdentHash () const { return m_IdentHash; };
const uint8_t * GetEncryptionPrivateKey () const { return m_EncryptionPrivateKey; };
const uint8_t * GetEncryptionPublicKey () const { return m_EncryptionPublicKey; };
private:
@ -149,7 +151,8 @@ namespace stream
std::map<uint32_t, Stream *> m_Streams;
i2p::data::PrivateKeys m_Keys;
i2p::data::IdentHash m_IdentHash;
uint8_t m_EncryptionPublicKey[256], m_EncryptionPrivateKey[256];
i2p::tunnel::TunnelPool * m_Pool;
I2NPMessage * m_LeaseSet;