From 218baffecaaac4c3744924cd28424a5070757dd2 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 4 Feb 2023 11:00:04 +0300 Subject: [PATCH] Fix OpenSSL version check. --- tdnet/td/net/SslStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdnet/td/net/SslStream.cpp b/tdnet/td/net/SslStream.cpp index 2e29e589e..0fd8d2594 100644 --- a/tdnet/td/net/SslStream.cpp +++ b/tdnet/td/net/SslStream.cpp @@ -89,7 +89,7 @@ long strm_ctrl(BIO *b, int cmd, long num, void *ptr) { case BIO_CTRL_PUSH: case BIO_CTRL_POP: return 0; -#if OPENSSL_VERSION_NUMBER >= 0x30000000L +#if OPENSSL_VERSION_NUMBER >= 0x30000000L && !defined(LIBRESSL_VERSION_NUMBER) case BIO_CTRL_GET_KTLS_SEND: case BIO_CTRL_GET_KTLS_RECV: return 0;