wait for acknowledment before using garlic tags

This commit is contained in:
orignal 2014-03-22 08:43:38 -04:00
parent 17fcd0c38f
commit 8d67c5ebcd
2 changed files with 24 additions and 3 deletions

View file

@ -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;