mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
wait for acknowledment before using garlic tags
This commit is contained in:
parent
17fcd0c38f
commit
8d67c5ebcd
2 changed files with 24 additions and 3 deletions
3
Garlic.h
3
Garlic.h
|
@ -35,7 +35,7 @@ namespace garlic
|
|||
};
|
||||
#pragma pack()
|
||||
|
||||
|
||||
const int TAGS_EXPIRATION_TIMEOUT = 660; // 15 minutes
|
||||
class GarlicRoutingSession
|
||||
{
|
||||
public:
|
||||
|
@ -66,6 +66,7 @@ namespace garlic
|
|||
bool m_IsAcknowledged;
|
||||
int m_NumTags, m_NextTag;
|
||||
uint8_t * m_SessionTags; // m_NumTags*32 bytes
|
||||
uint32_t m_TagsCreationTime; // seconds since epoch
|
||||
|
||||
CryptoPP::CBC_Mode<CryptoPP::AES>::Encryption m_Encryption;
|
||||
CryptoPP::AutoSeededRandomPool m_Rnd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue