mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
wait for acknowledment before using garlic tags
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user