| 448 | } |
| 449 | |
| 450 | void GarlicDestination::CleanUp () |
| 451 | { |
| 452 | for (auto it: m_Sessions) |
| 453 | it.second->SetOwner (nullptr); |
| 454 | m_Sessions.clear (); |
| 455 | m_DeliveryStatusSessions.clear (); |
| 456 | m_Tags.clear (); |
| 457 | for (auto it: m_ECIESx25519Sessions) |
| 458 | { |
| 459 | it.second->Terminate (); |
| 460 | it.second->SetOwner (nullptr); |
| 461 | } |
| 462 | m_ECIESx25519Sessions.clear (); |
| 463 | m_ECIESx25519Tags.clear (); |
| 464 | } |
| 465 | void GarlicDestination::AddSessionKey (const uint8_t * key, const uint8_t * tag) |
| 466 | { |
| 467 | if (key) |