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
10
Garlic.cpp
10
Garlic.cpp
|
@ -322,6 +322,12 @@ namespace garlic
|
|||
}
|
||||
}
|
||||
|
||||
bool GarlicDestination::SubmitSessionKey (const uint8_t * key, const uint8_t * tag)
|
||||
{
|
||||
AddSessionKey (key, tag);
|
||||
return true;
|
||||
}
|
||||
|
||||
void GarlicDestination::HandleGarlicMessage (I2NPMessage * msg)
|
||||
{
|
||||
uint8_t * buf = msg->GetPayload ();
|
||||
|
@ -389,8 +395,8 @@ namespace garlic
|
|||
{
|
||||
if (tagCount*32 > len)
|
||||
{
|
||||
LogPrint (eLogWarning, "Tag count ", tagCount, " exceeds length ", len);
|
||||
tagCount = len/32;
|
||||
LogPrint (eLogError, "Tag count ", tagCount, " exceeds length ", len);
|
||||
return ;
|
||||
}
|
||||
uint32_t ts = i2p::util::GetSecondsSinceEpoch ();
|
||||
for (int i = 0; i < tagCount; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue