Browse Source

check if session expired before generating more tags

pull/1583/head
orignal 4 years ago
parent
commit
c833b16544
  1. 3
      libi2pd/ECIESX25519AEADRatchetSession.cpp

3
libi2pd/ECIESX25519AEADRatchetSession.cpp

@ -1010,10 +1010,13 @@ namespace garlic @@ -1010,10 +1010,13 @@ namespace garlic
}
void ECIESX25519AEADRatchetSession::GenerateMoreReceiveTags (std::shared_ptr<RatchetTagSet> receiveTagset, int numTags)
{
if (GetOwner ())
{
for (int i = 0; i < numTags; i++)
GetOwner ()->AddECIESx25519SessionNextTag (receiveTagset);
}
}
bool ECIESX25519AEADRatchetSession::CheckExpired (uint64_t ts)
{

Loading…
Cancel
Save