From f6625e7c21bd25435f081069b349be9142caa1e8 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 1 Aug 2026 20:19:35 -0400 Subject: [PATCH] don't accept NTCP2 version 3 and 5 if LibreSSL --- libi2pd/NTCP2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libi2pd/NTCP2.cpp b/libi2pd/NTCP2.cpp index c872a592..1ccf7edc 100644 --- a/libi2pd/NTCP2.cpp +++ b/libi2pd/NTCP2.cpp @@ -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 }