|
|
@ -30,6 +30,7 @@ namespace i2p |
|
|
|
RouterContext (); |
|
|
|
RouterContext (); |
|
|
|
void Init (); |
|
|
|
void Init (); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const i2p::data::PrivateKeys& GetPrivateKeys () const { return m_Keys; }; |
|
|
|
i2p::data::RouterInfo& GetRouterInfo () { return m_RouterInfo; }; |
|
|
|
i2p::data::RouterInfo& GetRouterInfo () { return m_RouterInfo; }; |
|
|
|
std::shared_ptr<const i2p::data::RouterInfo> GetSharedRouterInfo () const |
|
|
|
std::shared_ptr<const i2p::data::RouterInfo> GetSharedRouterInfo () const |
|
|
|
{ |
|
|
|
{ |
|
|
@ -73,9 +74,10 @@ namespace i2p |
|
|
|
void UpdateStats (); |
|
|
|
void UpdateStats (); |
|
|
|
|
|
|
|
|
|
|
|
// implements LocalDestination
|
|
|
|
// implements LocalDestination
|
|
|
|
const i2p::data::PrivateKeys& GetPrivateKeys () const { return m_Keys; }; |
|
|
|
std::shared_ptr<const i2p::data::IdentityEx> GetIdentity () const { return m_Keys.GetPublic (); }; |
|
|
|
const uint8_t * GetEncryptionPrivateKey () const { return m_Keys.GetPrivateKey (); }; |
|
|
|
const uint8_t * GetEncryptionPrivateKey () const { return m_Keys.GetPrivateKey (); }; |
|
|
|
const uint8_t * GetEncryptionPublicKey () const { return GetIdentity ()->GetStandardIdentity ().publicKey; }; |
|
|
|
const uint8_t * GetEncryptionPublicKey () const { return GetIdentity ()->GetStandardIdentity ().publicKey; }; |
|
|
|
|
|
|
|
void Sign (const uint8_t * buf, int len, uint8_t * signature) const { m_Keys.Sign (buf, len, signature); }; |
|
|
|
void SetLeaseSetUpdated () {}; |
|
|
|
void SetLeaseSetUpdated () {}; |
|
|
|
|
|
|
|
|
|
|
|
// implements GarlicDestination
|
|
|
|
// implements GarlicDestination
|
|
|
|