mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
add single tag from destination's tread
This commit is contained in:
parent
d1cca92459
commit
b7d1b74ffa
5 changed files with 31 additions and 3 deletions
|
@ -163,6 +163,26 @@ namespace client
|
|||
}
|
||||
}
|
||||
|
||||
bool ClientDestination::SubmitSessionKey (const uint8_t * key, const uint8_t * tag)
|
||||
{
|
||||
if (m_Service)
|
||||
{
|
||||
uint8_t k[32], t[32];
|
||||
memcpy (k, key, 32);
|
||||
memcpy (t, tag, 32);
|
||||
m_Service->post ([this,k,t](void)
|
||||
{
|
||||
this->AddSessionKey (k, t);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrint (eLogWarning, "Destination's thread is not running");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void ClientDestination::ProcessGarlicMessage (I2NPMessage * msg)
|
||||
{
|
||||
if (m_Service)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue