handle termination block

This commit is contained in:
orignal 2020-05-05 13:01:23 -04:00
parent d7d70b707f
commit c4d9c03930
4 changed files with 30 additions and 13 deletions

View file

@ -1013,5 +1013,14 @@ namespace garlic
m_ECIESx25519Sessions.emplace (staticKeyTag, session);
}
void GarlicDestination::RemoveECIESx25519Session (const uint8_t * staticKey)
{
auto it = m_ECIESx25519Sessions.find (staticKey);
if (it != m_ECIESx25519Sessions.end ())
{
it->second->SetOwner (nullptr);
m_ECIESx25519Sessions.erase (it);
}
}
}
}