Browse Source

gererate specified number of tags if misssing tag

pull/1603/head
orignal 4 years ago
parent
commit
bf91e16b5d
  1. 3
      libi2pd/Garlic.cpp

3
libi2pd/Garlic.cpp

@ -548,7 +548,8 @@ namespace garlic
// try to gererate more tags for last tagset // try to gererate more tags for last tagset
if (m_LastTagset) if (m_LastTagset)
{ {
for (int i = 0; i < ECIESX25519_MAX_NUM_GENERATED_TAGS; i++) auto maxTags = std::max (m_NumRatchetInboundTags, ECIESX25519_MAX_NUM_GENERATED_TAGS);
for (int i = 0; i < maxTags; i++)
{ {
LogPrint (eLogDebug, "Garlic: Missing ECIES-X25519-AEAD-Ratchet tag was generated"); LogPrint (eLogDebug, "Garlic: Missing ECIES-X25519-AEAD-Ratchet tag was generated");
if (AddECIESx25519SessionNextTag (m_LastTagset) == tag) if (AddECIESx25519SessionNextTag (m_LastTagset) == tag)

Loading…
Cancel
Save