MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / CleanUp

Method CleanUp

libi2pd/Garlic.cpp:450–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

SetOwnerMethod · 0.45
TerminateMethod · 0.45

Tested by

no test coverage detected