initial LeaseSet2 support in I2CP

This commit is contained in:
orignal 2019-01-29 11:30:31 -05:00
parent a3344c4290
commit 08ddc98303
4 changed files with 53 additions and 2 deletions

View file

@ -630,5 +630,14 @@ namespace data
htobe16buf (expiresBuf, expires > 0 ? expires : 0);
// we don't sign it yet. must be signed later on
}
LocalLeaseSet2::LocalLeaseSet2 (uint8_t storeType, std::shared_ptr<const IdentityEx> identity, const uint8_t * buf, size_t len):
LocalLeaseSet (identity, nullptr, 0)
{
m_BufferLen = len;
m_Buffer = new uint8_t[m_BufferLen + 1];
memcpy (m_Buffer + 1, buf, len);
m_Buffer[0] = storeType;
}
}
}