don't accept NTCP2 version 3 and 5 if LibreSSL

This commit is contained in:
orignal
2026-08-01 20:19:35 -04:00
parent 867e977457
commit f6625e7c21
+3
View File
@@ -2286,6 +2286,9 @@ namespace transport
void NTCP2Server::SetVersion (int version)
{
#if OPENSSL_PQ
#ifdef LIBRESSL_VERSION_NUMBER
if (version == 2 || version == 5) version = 2; // 3 and 5 are not supported by LibreSSL
#endif
m_Version = version;
#endif
}