mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't check session for symmetric key tagset. re-create tags hash if too many used tags
This commit is contained in:
parent
900153765a
commit
2b6a95cbee
4 changed files with 52 additions and 23 deletions
|
@ -86,7 +86,8 @@ namespace garlic
|
|||
|
||||
virtual bool IsIndexExpired (int index) const;
|
||||
virtual bool HandleNextMessage (uint8_t * buf, size_t len, int index);
|
||||
|
||||
virtual bool IsSessionTerminated () const;
|
||||
|
||||
private:
|
||||
|
||||
int m_TrimBehindIndex = 0;
|
||||
|
@ -101,9 +102,10 @@ namespace garlic
|
|||
|
||||
SymmetricKeyTagSet (GarlicDestination * destination, const uint8_t * key);
|
||||
|
||||
bool IsIndexExpired (int index) const { return false; };
|
||||
bool HandleNextMessage (uint8_t * buf, size_t len, int index);
|
||||
|
||||
bool IsIndexExpired (int index) const override { return false; };
|
||||
bool HandleNextMessage (uint8_t * buf, size_t len, int index) override;
|
||||
bool IsSessionTerminated () const override { return false; }
|
||||
|
||||
private:
|
||||
|
||||
GarlicDestination * m_Destination;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue