Browse Source

allow longer families

pull/1515/head
orignal 5 years ago
parent
commit
c49e544781
  1. 4
      libi2pd/Family.cpp

4
libi2pd/Family.cpp

@ -113,9 +113,9 @@ namespace data
bool Families::VerifyFamily (const std::string& family, const IdentHash& ident, bool Families::VerifyFamily (const std::string& family, const IdentHash& ident,
const char * signature, const char * key) const char * signature, const char * key)
{ {
uint8_t buf[50], signatureBuf[64]; uint8_t buf[100], signatureBuf[64];
size_t len = family.length (), signatureLen = strlen (signature); size_t len = family.length (), signatureLen = strlen (signature);
if (len + 32 > 50) if (len + 32 > 100)
{ {
LogPrint (eLogError, "Family: ", family, " is too long"); LogPrint (eLogError, "Family: ", family, " is too long");
return false; return false;

Loading…
Cancel
Save