mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
validate leaseset for zero leases
This commit is contained in:
parent
9ce9d9b7fc
commit
d5e1d5db9c
4 changed files with 46 additions and 10 deletions
|
@ -44,6 +44,7 @@ namespace data
|
|||
|
||||
const uint8_t * GetBuffer () const { return m_Buffer; };
|
||||
size_t GetBufferLen () const { return m_BufferLen; };
|
||||
bool IsValid () const { return m_IsValid; };
|
||||
|
||||
// implements RoutingDestination
|
||||
const IdentHash& GetIdentHash () const { return m_Identity.GetIdentHash (); };
|
||||
|
@ -60,6 +61,7 @@ namespace data
|
|||
|
||||
private:
|
||||
|
||||
bool m_IsValid;
|
||||
std::vector<Lease> m_Leases;
|
||||
IdentityEx m_Identity;
|
||||
uint8_t m_EncryptionKey[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue