choose version for handshake on Alice side

This commit is contained in:
orignal committed 2026-01-09 13:44:23 -05:00
1 parent a4839bf2be
commit 86d07703b6
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -528,7 +528,8 @@ namespace transport
memcpy (m_Establisher->m_IV, addr->i, 16);
m_RemoteEndpoint = boost::asio::ip::tcp::endpoint (addr->host, addr->port);
#if OPENSSL_PQ
//m_Establisher->SetVersion (addr->v);
if (m_Server.GetVersion () > 2) // we support post quantum in config
m_Establisher->SetVersion (addr->v);
#endif
}
else
+1
View File
@@ -307,6 +307,7 @@ namespace transport
void SetLocalAddress (const boost::asio::ip::address& localAddress);
void SetVersion (int version);
int GetVersion () const { return m_Version; }
private: