mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 18:47:52 +00:00
rekey all routers to ECIES
This commit is contained in:
parent
d06924b339
commit
08fafe267a
@ -736,14 +736,8 @@ namespace i2p
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::shared_ptr<const i2p::data::IdentityEx> oldIdentity;
|
std::shared_ptr<const i2p::data::IdentityEx> oldIdentity;
|
||||||
bool rekey = m_Keys.GetPublic ()->GetSigningKeyType () == i2p::data::SIGNING_KEY_TYPE_DSA_SHA1;
|
if (m_Keys.GetPublic ()->GetSigningKeyType () == i2p::data::SIGNING_KEY_TYPE_DSA_SHA1 ||
|
||||||
if (!rekey && m_Keys.GetPublic ()->GetCryptoKeyType () == i2p::data::CRYPTO_KEY_TYPE_ELGAMAL)
|
m_Keys.GetPublic ()->GetCryptoKeyType () == i2p::data::CRYPTO_KEY_TYPE_ELGAMAL)
|
||||||
{
|
|
||||||
// rekey routers with bandwidth = L (or default) this time
|
|
||||||
bool isFloodfill; i2p::config::GetOption("floodfill", isFloodfill);
|
|
||||||
if (!isFloodfill) rekey = true;
|
|
||||||
}
|
|
||||||
if (rekey)
|
|
||||||
{
|
{
|
||||||
// update keys
|
// update keys
|
||||||
LogPrint (eLogInfo, "Router: router keys are obsolete. Creating new");
|
LogPrint (eLogInfo, "Router: router keys are obsolete. Creating new");
|
||||||
|
Loading…
Reference in New Issue
Block a user