mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 21:51:51 +00:00
don't handle LeaseSet1 coming from ECIESx25519 session
This commit is contained in:
1 parent
6cee5c78fa
commit
21a7726916
2 files changed
+2
-2
No files matched your search
@@ -455,7 +455,7 @@ namespace client
|
||||
if (buf[DATABASE_STORE_TYPE_OFFSET] == i2p::data::NETDB_STORE_TYPE_LEASESET)
|
||||
{
|
||||
leaseSet = std::make_shared<i2p::data::LeaseSet> (buf + offset, len - offset); // LeaseSet
|
||||
if (!SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ELGAMAL))
|
||||
if (!SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ELGAMAL) || from) // LeaseSet1 can't come from ECIESx25519 session
|
||||
leaseSet->SetIsIncompatibleCrypto (true);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user