| 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 | { |
no test coverage detected