mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
gererate specified number of tags if misssing tag
This commit is contained in:
parent
65945b3462
commit
bf91e16b5d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue