mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
create encrypted LeaseSet2 with authentication
This commit is contained in:
parent
7d68ccca53
commit
99e1b74023
1 changed files with 1 additions and 1 deletions
|
@ -821,7 +821,7 @@ namespace data
|
||||||
{
|
{
|
||||||
if (authType == eLeaseSetAuthTypeDH) layer1Flags |= 0x01; // DH, authentication scheme 0, auth bit 1
|
if (authType == eLeaseSetAuthTypeDH) layer1Flags |= 0x01; // DH, authentication scheme 0, auth bit 1
|
||||||
else if (authType == eLeaseSetAuthTypePSK) layer1Flags |= 0x03; // PSK, authentication scheme 1, auth bit 1
|
else if (authType == eLeaseSetAuthTypePSK) layer1Flags |= 0x03; // PSK, authentication scheme 1, auth bit 1
|
||||||
m_BufferLen += authKeys->size ()*40 + 2; // auth data len
|
if (layer1Flags) m_BufferLen += authKeys->size ()*40 + 2; // auth data len
|
||||||
}
|
}
|
||||||
m_Buffer = new uint8_t[m_BufferLen + 1];
|
m_Buffer = new uint8_t[m_BufferLen + 1];
|
||||||
m_Buffer[0] = NETDB_STORE_TYPE_ENCRYPTED_LEASESET2;
|
m_Buffer[0] = NETDB_STORE_TYPE_ENCRYPTED_LEASESET2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue