Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8309AC982D8 for ; Sat, 19 Sep 2026 16:13:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4D1BC40B32; Sat, 19 Sep 2026 16:13:56 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id fxQraJ7Ey2LP; Sat, 19 Sep 2026 16:13:55 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp4.osuosl.org 32B6040CDE Authentication-Results: smtp4.osuosl.org; arc=fail smtp.remote-ip=140.211.166.142 ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=fail; t=1789834435; b=lROAhvC2e0slL4XT1zoitSE10LcGI/JHc6GUtPcpzVxt3CASxKJOkrSdUAFEIVaaa7aP BeyqcbkVGNogygagWYzxEARtZDv7hfhQGfrHdVGLh+w2cNQpNuxzztrU1/Yibc9VLDg+q kBkaPwVyDmlTMq4P+gR07tF4iNE/mbbmbRWdCEsoeV0fQLRIbjC/VCYL0WSF+Hh7KmE1W 8bz20EToUk8kqyPWTAF0z5O5VGM4NrDKiwpzyUhEdnnEGvnrSbld2JCFh9AgQE8zssBoY HViZfE37//Ad+Te6BFvgoOO0FQQPSezn6n3Fs2vpmOOiPpWDf2BnikONWSglV+7BVeg== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789834435; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:X-KAS-Sym:Received:Received:From:To:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version:X-Spamd-Bar:Subject: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Cc:Content-Type: Content-Transfer-Encoding:Errors-To:Sender; bh=LkCRmXzEA14VekCqJmC8pfyK8xjF+wrdKE3bdo/HKPI=; b=BaLkS+8zWb2eQh99Tk3ruLlXS3Of2MVdYl/M4CuQyfO/od9+3bq0gY5ZZQYBiJkf5yVW ntRM1NkUCQXCpIWfZUyilz4wi3RyACi2H/g8LCPyuSFQamwbFR6ys/NPmaW3eKOLc7BRb 1r5qMc+y87t8jJeiIfFSflVtKsiGTKcViCfAKr9OTyQOh77VSuh/zWhljv3rZJwJZlFF+ z4AIlWiuR9Ei2z1jjlwlOxV9HgkyN4cb7OnZL8yQdcTewlA8czC5OgYWRRwTBumfdiXq2 QiLkUx5VCbZtP6A+iuGEhaJBC69N351jOiC8Dn7KxjpMPNiSCEKY40IX0YtFn5RimhA== ARC-Authentication-Results: i=2; smtp4.osuosl.org; arc=fail smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org; s=default; t=1789834435; bh=LkCRmXzEA14VekCqJmC8pfyK8xjF+wrdKE3bdo/HKPI=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=bqFq/6/vCVskyNfWpq1nEvqEAEihLb3PbiFH8QTlbDiJZAiT+CMO9sup5Yg3w7GCV 95FHztfInX3z81wKhX30WSwMdk1k04SBCSmaeAs5zUrdzEwpgPVv51RthyPvrcBlhU eTJajymNmKIw6Wm4O87dfumK6Bw8EXtJbzoDab+fWp+oWark4xKgLaJF7iF9xLJnoc SO3wLQP+G3hBtENey06XRd1rKX0oPR6ADSRZ3vN9WE3YTTn2apKjuUzcMR15zEf+4g nqAhdi+Sk1K3BigD3MshZfQxU6w57zA7zES5kA2gOYrNLjnFFqJiLDsFLweAJCciW5 Nfv5nPX4P1IPQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 32B6040CDE; Sat, 19 Sep 2026 16:13:55 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 04684333 for ; Sat, 19 Sep 2026 16:13:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id EA13A60BC8 for ; Sat, 19 Sep 2026 16:13:53 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Gb0lzFiAryt3 for ; Sat, 19 Sep 2026 16:13:53 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp3.osuosl.org ADDCC606CC Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=85.13.140.57 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1789834432; b=h3SJptO7yg63waMAvVlLYH1UDZAM4bOQfn8AfZZiXy4f2o3g95n9o/x7jR/OEFhtXIWj fXdgQ6rKiUEp07n/jFA8UrXL7hoRWSNIEV9zwTyuHnX+FiHXZXYrMG5LKGP9iFWoDbkxg 3rDhynSf9c8bQIgzwRHS7IAzKQTDkTxqUQ1mdpvYsE1lCXtJ3dSQCet7t1Yi8S9AXfDNM 4/Qkw+5SWrUeOkJUl1J4Zykp3u0XDqq5xlThv0d4dEm2la5FqpV/DYzn1OYp0MiOM6N/n A/Nj6ogOYaxIZuYAf4VIZSdsKjnltkUgoxRck37JlgoOjSPeaTeciODRP9yVP4PPd5g== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789834432; h=Received-SPF:DKIM-Signature:X-KAS-Sym:Received:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Spam-Score:X-Spamd-Bar; bh=El5Eb0+i8zpcTDiZtpWOe9Z2uNOQ4hE8n0T93bTQeys=; b=fyGoulU1G7U0proDQ0lMBqdcFljpLNUSZlg2aLZ5icHTNQA8mf2Kr2TfRA7VYbcM+0So thilmefdLUZR+Si6pYhoDVhBWE7ZEgf+MvuzSLWDsFShQ6mdMDVh283B6Lw0RueVCJffF hd6b/WTVYuoX+kk2/oPFu1+qOJT1hfUVRZyxcMeoqW8e5XW3CCdSWgSUyA/TVzfutceXj U0bo3epk35ezDSQNPq6Bt2lBw4E3R+NUnmOHMabKNCX49FEWm7bu0OMRCE1Qk821tQULP Fz8oU3kGfGVeNyWqmvH4Gj2wLnlaYhWmmXJID38BmpsaIbiRT63y2YqaH9chW33H4UQ== ARC-Authentication-Results: i=1; smtp3.osuosl.org; dmarc=pass header.from=kuhls.net; dkim=pass header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256 header.s=kas202605290044 header.b=R+hnjBsd; arc=none smtp.remote-ip=85.13.140.57 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=85.13.140.57; helo=dd20012.kasserver.com; envelope-from=bernd@kuhls.net; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=kuhls.net Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256 header.s=kas202605290044 header.b=R+hnjBsd Received: from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57]) by smtp3.osuosl.org (Postfix) with ESMTPS id ADDCC606CC for ; Sat, 19 Sep 2026 16:13:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kuhls.net; s=kas202605290044; t=1789833558; bh=El5Eb0+i8zpcTDiZtpWOe9Z2uNOQ4hE8n0T93bTQeys=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=R+hnjBsdvz3g1BnIgjgfzATvn9TiNtLvfVioJdRlO6mi85RRNfQxMUWIbjCZYKQwr 2GWxKF1XRoWsXuRDoaqMAM9Zkjffx1uttLiert1bCktLQME8vY6O9EyXH5CaS/abtI PVoggsxKI0ZWwCtxAzkvwgU/rATrnWBR3hrwtP05Ec+8pZ+o9rcw65af+bNDrliJk3 K4V0ihWql5Lwio6L7BrE8D2KCe9EJzxK0kKDzIOxRzAAHwJo7kdwAjTfkEDCJLOPqt x1XeFDyNLsKwcJhfJIMBaeKKP9ioKZ7lVibPhgSsINgTdw1PazkZLSpJFuxVFmmekG l3jukgkrESQ2w== X-KAS-Sym: v3:f51bdf72230551df:gmt39DKOa2A41oLFzswc1ak3jJsAy8EKrWYvfkLHTUlP5oBvqhD3SonKR0eCjPDaVkHbtraobmntqgA2CLBBFKi84wi5F2j1ScmOQFzcxDjuD3phZHAssDCx9WZqanntRoYpLogm4rtzjdJapTMxHJxDWQI3Fozz7DrQtNoavUgMfggZ/wpgTHWTNaUG9mA2RKjmYRHmYAUksqtKBePefmpisQbVjO1OHIUZY/59P/gZ43yJbG7q6xpZc3z0u9aLEbL0D61rENpFpAa63AfIDRCewB/vpO97JrlrkKrXMvg6akriPYi1+SiTfhgy1c+iG83rzhag072zLXLQsF4b3g==:RCgEmqXSbsY683R0ckkw+s0kwngQhvLDYr499hGeFH31vHMfSf6mZIGLV69aQK3kLKf+d4+WcOVRrP/e+t6xBdgOU7N6tH9GDnoMQg4MmpiBInztFJgLmAoWnXjKaghut/kliV1qdFHIxxZJMRTSGH/e6stoGQFlLUjXz54xtDLDJ6ESGpBjk/4hNHFWj8HHNNARH3VtcRpIx0aMekfJpm/catneYcvenhpIzOtAxCXVLecLf93JC60JeFnQWFWEMDe0iIm6xuwJZR/NFReTLsWbpPv6S3Z1tXsRXAfGtnydbu7bh5rvNgnI7Jp9Yve+l16AuroOu4wBoG0o5RAPhFxr1LqTAeCDt2NQ2FZRundhluEqEgyZS72UKiA4dI/DtaYz4JDUBBztayi7aHAFqNtugNCPfkyS5lsVS4PLQDAxYtAdxYxd5A95UrdwlQU6A2IBYeg9rkT/qF5qMZaSYdggkKtUhOUGSvIvYUufdyKkWbzvzAY84+D5G3hWhehKqB6XGKYUimN61Dswdf4F4PSLEr5mNVTqdaUd7Tfq/YxfdqFlXCSBIS7WdgT1iK2t3IRhlsOWIKvazaonFtvk4Kg9cHzmXbBoyLIUrM2Z7G84wD o8hn2gKpGjq3q/ZLUZ0RwEVmngAN5Wy9BRxe5eVWxJlqefybVAlzRkEAZXxyluVIH8/gk= Received: from fli4l.lan.fli4l (p54a1b276.dip0.t-ipconnect.de [84.161.178.118]) by dd20012.kasserver.com (Postfix) with ESMTPSA id 882A9A4C485E; Sat, 19 Sep 2026 17:59:18 +0200 (CEST) Received: from bruckner.lan.fli4l ([192.168.1.1]:44948) by fli4l.lan.fli4l with esmtp (Exim 4.100.1) (envelope-from ) id 1x7xSw-000000005Jx-1i9f; Sat, 19 Sep 2026 15:59:02 +0000 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sat, 19 Sep 2026 17:58:34 +0200 Message-ID: <20260919155845.5776-70-bernd@kuhls.net> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260919155845.5776-1-bernd@kuhls.net> References: <20260919155845.5776-1-bernd@kuhls.net> MIME-Version: 1.0 X-Spamd-Bar: ++ Subject: [Buildroot] [PATCH v2 69/77] package/thrift: Fix build with LibreSSL and OpenSSL 4.x X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Koen Martens , Aleksandr Makarov , Zoltan Gyarmati , Marcin Bis , Robert Rose , Yair Ben Avraham , Marcin Niestroj , Thomas Petazzoni , =?UTF-8?q?C=C3=A9dric=20Ch=C3=A9pied?= , Heiko Thiery , Dario Binacchi , Titouan Christophe , Fabrice Fontaine , Joris Lijssens , Philipp Richter , Thomas Devoogdt , Romain Naour , Roy Kollen Svendsen , Brandon Maier , Francois Perrad , =?UTF-8?q?No=C3=A9=20Rubinstein?= , Jesse Van Gavere , Luca Ceresoli , David GOUARIN , Andrey Yurovsky , =?UTF-8?q?Andr=C3=A9=20Zwing?= , Daniel Price , Christian Hitz , Gregory Dymarek , Stefan Ott , Baxiche Su , Philippe Reynes , Fabrice Fontaine , James Hilliard , Giulio Benetti , Karoly Kasza , Martin Bark Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Buildroot commit cf2471a9d958b0eaa2db3508e96b465eaa481f3e bumped the package from 0.14.1 to 0.22.0 which includes upstream commit https://github.com/apache/thrift/commit/98be76fc033f1d66bcfd09d4a22b86e8061e89c2 This commit added OPENSSL_thread_stop() which is not provided by LibreSSL causing a build error. To fix the problem we add an upstream patch which is a merged version of LibreSSL fixes[1] and fixes for the upcoming OpenSSL bump to 4.0.0. Fixes: https://autobuild.buildroot.net/results/242/242ea99f1c1c29fcc364d59a6a7efc8f11bcf76e/ [1] https://github.com/apache/thrift/pull/3736 Signed-off-by: Bernd Kuhls --- ...sport-Make-it-compatible-with-OpenSS.patch | 193 ++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 package/thrift/0002-THRIFT-6170-transport-Make-it-compatible-with-OpenSS.patch diff --git a/package/thrift/0002-THRIFT-6170-transport-Make-it-compatible-with-OpenSS.patch b/package/thrift/0002-THRIFT-6170-transport-Make-it-compatible-with-OpenSS.patch new file mode 100644 index 0000000000..7a5cfc5ce1 --- /dev/null +++ b/package/thrift/0002-THRIFT-6170-transport-Make-it-compatible-with-OpenSS.patch @@ -0,0 +1,193 @@ +From e460f4277fabede007c751969ab8fc161eadaa16 Mon Sep 17 00:00:00 2001 +From: Sebastian Andrzej Siewior +Date: Sun, 30 Aug 2026 10:19:00 +0200 +Subject: [PATCH] THRIFT-6170: transport: Make it compatible with OpenSSL 4.0 + +Make it compatible with OpenSSL 4.0: +- Don't use ERR_remove_state(). It has been an empty stub since OpenSSL + 1.1.0 and got finally removed in 4.0- + +- SSLv3_method(), TLSv1_method(), TLSv1_1_method() and TLSv1_2_method() + have been removed. The recommendation is to use TLS_method() instead. + LATEST points to TLSv1_2_method which is not going to work. + Make SSLTLS and LATEST point to TLS_method() for newer OpenSSL which + uses the highest supported protocol version. + Adjust the testsuite to only test those two. + +- The return value of a few functions such as X509_get_subject_name() + has been made const. Use the const pointer only for newer OpenSSL. + +- While at it, pull the libressl related change from #3736 + +Client: cpp,c_glib. + +Signed-off-by: Sebastian Andrzej Siewior + +Upstream: https://github.com/apache/thrift/pull/3761 + +Signed-off-by: Bernd Kuhls +--- + .../c_glib/transport/thrift_ssl_socket.c | 11 ++++++++++ + lib/cpp/src/thrift/transport/TSSLSocket.cpp | 20 +++++++++++++++---- + lib/cpp/test/SecurityFromBufferTest.cpp | 10 ++++++++++ + lib/cpp/test/SecurityTest.cpp | 10 ++++++++++ + 4 files changed, 47 insertions(+), 4 deletions(-) + +diff --git a/lib/c_glib/src/thrift/c_glib/transport/thrift_ssl_socket.c b/lib/c_glib/src/thrift/c_glib/transport/thrift_ssl_socket.c +index d6c7bb2ba..0681831cb 100644 +--- a/lib/c_glib/src/thrift/c_glib/transport/thrift_ssl_socket.c ++++ b/lib/c_glib/src/thrift/c_glib/transport/thrift_ssl_socket.c +@@ -285,7 +285,9 @@ thrift_ssl_socket_close (ThriftTransport *transport, GError **error) + SSL_shutdown(ssl_socket->ssl); + SSL_free(ssl_socket->ssl); + ssl_socket->ssl = NULL; ++#if OPENSSL_VERSION_NUMBER < 0x40000000L + ERR_remove_state(0); ++#endif + } + return thrift_socket_close(transport, error); + } +@@ -710,7 +712,9 @@ void thrift_ssl_socket_finalize_openssl(void) + ERR_free_strings(); + EVP_cleanup(); + CRYPTO_cleanup_all_ex_data(); ++#if OPENSSL_VERSION_NUMBER < 0x40000000L + ERR_remove_state(0); ++#endif + } + + +@@ -832,6 +836,12 @@ thrift_ssl_socket_context_initialize(ThriftSSLSocketProtocol ssl_protocol, GErro + { + SSL_CTX* context = NULL; + switch(ssl_protocol){ ++#if OPENSSL_VERSION_NUMBER >= 0x40000000L ++ case SSLTLS: ++ case LATEST: ++ context = SSL_CTX_new(TLS_method()); ++ break; ++#else + case SSLTLS: + context = SSL_CTX_new(SSLv23_method()); + break; +@@ -849,6 +859,7 @@ thrift_ssl_socket_context_initialize(ThriftSSLSocketProtocol ssl_protocol, GErro + case TLSv1_2: + context = SSL_CTX_new(TLSv1_2_method()); + break; ++#endif + default: + g_set_error (error, THRIFT_TRANSPORT_ERROR, + THRIFT_SSL_SOCKET_ERROR_CIPHER_NOT_AVAILABLE, +diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp +index 48b96ebf7..e8d69a329 100644 +--- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp ++++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp +@@ -157,7 +157,7 @@ void cleanupOpenSSL() { + #endif + EVP_cleanup(); + CRYPTO_cleanup_all_ex_data(); +-#if OPENSSL_VERSION_NUMBER >= 0x10100000 ++#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) + // Do nothing unless an openssl derivative is detected + # if !defined(OPENSSL_IS_BORINGSSL) && !defined(OPENSSL_IS_AWSLC) + // https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_thread_stop.html +@@ -180,6 +180,10 @@ static char uppercase(char c); + + // SSLContext implementation + SSLContext::SSLContext(const SSLProtocol& protocol) { ++#if OPENSSL_VERSION_NUMBER >= 0x40000000L ++ if (protocol == SSLTLS || protocol == LATEST) { ++ ctx_ = SSL_CTX_new(TLS_method()); ++#else + if (protocol == SSLTLS) { + ctx_ = SSL_CTX_new(SSLv23_method()); + #ifndef OPENSSL_NO_SSL3 +@@ -192,6 +196,7 @@ SSLContext::SSLContext(const SSLProtocol& protocol) { + ctx_ = SSL_CTX_new(TLSv1_1_method()); + } else if (protocol == TLSv1_2) { + ctx_ = SSL_CTX_new(TLSv1_2_method()); ++#endif + } else { + /// UNKNOWN PROTOCOL! + throw TSSLException("SSL_CTX_new: Unknown protocol"); +@@ -405,7 +410,7 @@ void TSSLSocket::close() { + SSL_free(ssl_); + ssl_ = nullptr; + handshakeCompleted_ = false; +-#if OPENSSL_VERSION_NUMBER >= 0x10100000 ++#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) + // Do nothing unless an openssl derivative is detected + # if !defined(OPENSSL_IS_BORINGSSL) && !defined(OPENSSL_IS_AWSLC) + // https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_thread_stop.html +@@ -800,9 +805,16 @@ void TSSLSocket::authorize() { + } + + // extract commonName ++#if OPENSSL_VERSION_NUMBER >= 0x40000000L ++ const X509_NAME* name = X509_get_subject_name(cert); ++ const X509_NAME_ENTRY* entry; ++ const ASN1_STRING* common; ++#else + X509_NAME* name = X509_get_subject_name(cert); ++ X509_NAME_ENTRY* entry; ++ ASN1_STRING* common; ++#endif + if (name != nullptr) { +- X509_NAME_ENTRY* entry; + unsigned char* utf8; + int last = -1; + while (decision == AccessManager::SKIP) { +@@ -812,7 +824,7 @@ void TSSLSocket::authorize() { + entry = X509_NAME_get_entry(name, last); + if (entry == nullptr) + continue; +- ASN1_STRING* common = X509_NAME_ENTRY_get_data(entry); ++ common = X509_NAME_ENTRY_get_data(entry); + int size = ASN1_STRING_to_UTF8(&utf8, common); + if (host.empty()) { + host = (server() ? getPeerHost() : getHost()); +diff --git a/lib/cpp/test/SecurityFromBufferTest.cpp b/lib/cpp/test/SecurityFromBufferTest.cpp +index 08f76b3f2..1ff64087a 100644 +--- a/lib/cpp/test/SecurityFromBufferTest.cpp ++++ b/lib/cpp/test/SecurityFromBufferTest.cpp +@@ -235,6 +235,16 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix) { + continue; + } + #endif ++#if OPENSSL_VERSION_NUMBER >= 0x40000000L ++ if (!(si == apache::thrift::transport::SSLTLS || ++ si == apache::thrift::transport::LATEST) || ++ !(ci == apache::thrift::transport::SSLTLS || ++ ci == apache::thrift::transport::LATEST)) ++ { ++ // Only SSLTLS / LATEST is supported. ++ continue; ++ } ++#endif + + boost::mutex::scoped_lock lock(mMutex); + +diff --git a/lib/cpp/test/SecurityTest.cpp b/lib/cpp/test/SecurityTest.cpp +index 86640bd68..44815dfc7 100644 +--- a/lib/cpp/test/SecurityTest.cpp ++++ b/lib/cpp/test/SecurityTest.cpp +@@ -364,6 +364,16 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix) + continue; + } + #endif ++#if OPENSSL_VERSION_NUMBER >= 0x40000000L ++ if (!(si == apache::thrift::transport::SSLTLS || ++ si == apache::thrift::transport::LATEST) || ++ !(ci == apache::thrift::transport::SSLTLS || ++ ci == apache::thrift::transport::LATEST)) ++ { ++ // Only SSLTLS / LATEST is supported. ++ continue; ++ } ++#endif + + boost::mutex::scoped_lock lock(mMutex); + +-- +2.47.3 + -- 2.47.3 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot