|
|
@ -48,8 +48,8 @@ namespace i2p |
|
|
|
{ |
|
|
|
{ |
|
|
|
return std::shared_ptr<i2p::garlic::GarlicDestination> (this, |
|
|
|
return std::shared_ptr<i2p::garlic::GarlicDestination> (this, |
|
|
|
[](i2p::garlic::GarlicDestination *) {}); |
|
|
|
[](i2p::garlic::GarlicDestination *) {}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
uint32_t GetUptime () const; |
|
|
|
uint32_t GetUptime () const; |
|
|
|
uint32_t GetStartupTime () const { return m_StartupTime; }; |
|
|
|
uint32_t GetStartupTime () const { return m_StartupTime; }; |
|
|
|
uint64_t GetLastUpdateTime () const { return m_LastUpdateTime; }; |
|
|
|
uint64_t GetLastUpdateTime () const { return m_LastUpdateTime; }; |
|
|
@ -89,9 +89,7 @@ namespace i2p |
|
|
|
|
|
|
|
|
|
|
|
// implements LocalDestination
|
|
|
|
// implements LocalDestination
|
|
|
|
std::shared_ptr<const i2p::data::IdentityEx> GetIdentity () const { return m_Keys.GetPublic (); }; |
|
|
|
std::shared_ptr<const i2p::data::IdentityEx> GetIdentity () const { return m_Keys.GetPublic (); }; |
|
|
|
const uint8_t * GetEncryptionPrivateKey () const { return m_Keys.GetPrivateKey (); }; // deprecated
|
|
|
|
bool Decrypt (const uint8_t * encrypted, uint8_t * data, BN_CTX * ctx) const; |
|
|
|
void Decrypt (const uint8_t * encrypted, uint8_t * data, BN_CTX * ctx) const; |
|
|
|
|
|
|
|
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 Sign (const uint8_t * buf, int len, uint8_t * signature) const { m_Keys.Sign (buf, len, signature); }; |
|
|
|
void SetLeaseSetUpdated () {}; |
|
|
|
void SetLeaseSetUpdated () {}; |
|
|
|
|
|
|
|
|
|
|
|