mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
skip SigningPrivateKey
This commit is contained in:
parent
444539b826
commit
d6bfe7810a
2 changed files with 3 additions and 2 deletions
1
I2CP.cpp
1
I2CP.cpp
|
@ -354,6 +354,7 @@ namespace client
|
||||||
size_t offset = 2;
|
size_t offset = 2;
|
||||||
if (m_Destination)
|
if (m_Destination)
|
||||||
{
|
{
|
||||||
|
offset += m_Destination->GetIdentity ()->GetSigningPrivateKeyLen (); // skip signing private key
|
||||||
m_Destination->SetEncryptionPrivateKey (buf + offset);
|
m_Destination->SetEncryptionPrivateKey (buf + offset);
|
||||||
offset += 256;
|
offset += 256;
|
||||||
m_Destination->LeaseSetCreated (buf + offset, len - offset);
|
m_Destination->LeaseSetCreated (buf + offset, len - offset);
|
||||||
|
|
4
I2CP.h
4
I2CP.h
|
@ -66,12 +66,12 @@ namespace client
|
||||||
void LeaseSetCreated (const uint8_t * buf, size_t len); // called from I2CPSession
|
void LeaseSetCreated (const uint8_t * buf, size_t len); // called from I2CPSession
|
||||||
void SendMsgTo (const uint8_t * payload, size_t len, const i2p::data::IdentHash& ident, uint32_t nonce); // called from I2CPSession
|
void SendMsgTo (const uint8_t * payload, size_t len, const i2p::data::IdentHash& ident, uint32_t nonce); // called from I2CPSession
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
// implements LocalDestination
|
// implements LocalDestination
|
||||||
const uint8_t * GetEncryptionPrivateKey () const { return m_EncryptionPrivateKey; };
|
const uint8_t * GetEncryptionPrivateKey () const { return m_EncryptionPrivateKey; };
|
||||||
std::shared_ptr<const i2p::data::IdentityEx> GetIdentity () const { return m_Identity; };
|
std::shared_ptr<const i2p::data::IdentityEx> GetIdentity () const { return m_Identity; };
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
// I2CP
|
// I2CP
|
||||||
void HandleDataMessage (const uint8_t * buf, size_t len);
|
void HandleDataMessage (const uint8_t * buf, size_t len);
|
||||||
void CreateNewLeaseSet (std::vector<std::shared_ptr<i2p::tunnel::InboundTunnel> > tunnels);
|
void CreateNewLeaseSet (std::vector<std::shared_ptr<i2p::tunnel::InboundTunnel> > tunnels);
|
||||||
|
|
Loading…
Add table
Reference in a new issue