mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 09:00:30 +01:00
correct offline signature size for close packet
This commit is contained in:
parent
fc2dc9a019
commit
65945b3462
1 changed files with 1 additions and 1 deletions
|
@ -701,7 +701,7 @@ namespace stream
|
||||||
size++; // resend delay
|
size++; // resend delay
|
||||||
htobe16buf (packet + size, PACKET_FLAG_CLOSE | PACKET_FLAG_SIGNATURE_INCLUDED);
|
htobe16buf (packet + size, PACKET_FLAG_CLOSE | PACKET_FLAG_SIGNATURE_INCLUDED);
|
||||||
size += 2; // flags
|
size += 2; // flags
|
||||||
size_t signatureLen = m_LocalDestination.GetOwner ()->GetIdentity ()->GetSignatureLen ();
|
size_t signatureLen = m_LocalDestination.GetOwner ()->GetPrivateKeys ().GetSignatureLen ();
|
||||||
htobe16buf (packet + size, signatureLen); // signature only
|
htobe16buf (packet + size, signatureLen); // signature only
|
||||||
size += 2; // options size
|
size += 2; // options size
|
||||||
uint8_t * signature = packet + size;
|
uint8_t * signature = packet + size;
|
||||||
|
|
Loading…
Add table
Reference in a new issue