mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-14 07:11:02 +00:00
don't accept NTCP2 version 3 and 5 if LibreSSL
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user