mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
don't accept streams from RSA detinations
This commit is contained in:
parent
ab6bc52a0f
commit
272090fc8f
4 changed files with 16 additions and 3 deletions
|
@ -133,10 +133,9 @@ namespace data
|
|||
if (verifySignature)
|
||||
{
|
||||
// reject RSA signatures
|
||||
auto sigType = m_RouterIdentity->GetSigningKeyType ();
|
||||
if (sigType <= SIGNING_KEY_TYPE_RSA_SHA512_4096 && sigType >= SIGNING_KEY_TYPE_RSA_SHA256_2048)
|
||||
if (m_RouterIdentity->IsRSA ())
|
||||
{
|
||||
LogPrint (eLogError, "RouterInfo: RSA signature type ", sigType, " is not allowed");
|
||||
LogPrint (eLogError, "RouterInfo: RSA signature type is not allowed");
|
||||
m_IsUnreachable = true;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue