MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / ClientLogin

Method ClientLogin

libi2pd/NTCP2.cpp:1146–1156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144 }
1145
1146 void NTCP2Session::ClientLogin ()
1147 {
1148 if (m_Establisher->m_CryptoType > i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD && !(m_Server.GetRng ()() & 0x03))
1149 m_Establisher->SetVersion (2); // switch to non-PQ with a probability of one in four
1150 m_Establisher->CreateEphemeralKey ();
1151 boost::asio::post (m_Server.GetEstablisherService (),
1152 [s = shared_from_this ()] ()
1153 {
1154 s->SendSessionRequest ();
1155 });
1156 }
1157
1158 void NTCP2Session::ServerLogin (int version)
1159 {

Callers 2

HandleConnectMethod · 0.80
HandleProxyConnectMethod · 0.80

Calls 3

CreateEphemeralKeyMethod · 0.80
SetVersionMethod · 0.45
SendSessionRequestMethod · 0.45

Tested by

no test coverage detected