mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
generate DH keys pair per NTCP session
This commit is contained in:
@@ -221,4 +221,11 @@ namespace i2p
|
||||
}
|
||||
}
|
||||
|
||||
i2p::data::DHKeysPair * Transports::GetNextDHKeysPair ()
|
||||
{
|
||||
// TODO: use supplier with separate thread
|
||||
i2p::data::DHKeysPair * pair = new i2p::data::DHKeysPair ();
|
||||
i2p::data::CreateRandomDHKeysPair (pair);
|
||||
return pair;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user