From: Remi Gacogne Date: Thu, 5 Feb 2026 10:42:12 +0000 (+0100) Subject: test-base64: Keep the check enabled for DNSdist even w/ recent OpenSSL versions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=949d5bd0417b1e722841ab8f35a9141a58e32d91;p=thirdparty%2Fpdns.git test-base64: Keep the check enabled for DNSdist even w/ recent OpenSSL versions Signed-off-by: Remi Gacogne --- diff --git a/pdns/test-base64_cc.cc b/pdns/test-base64_cc.cc index b09611b425..5ffea78e46 100644 --- a/pdns/test-base64_cc.cc +++ b/pdns/test-base64_cc.cc @@ -82,7 +82,9 @@ BOOST_AUTO_TEST_CASE(test_Base64_Decode_Garbage) const std::string paddingOnly("===="); std::string decoded; auto ret = B64Decode(paddingOnly, decoded); -#if OPENSSL_VERSION_NUMBER >= 0x30500000 + // DNSdist uses a custom base64 implementation, + // and older versions of OpenSSL were less strict +#if defined(DNSDIST) || OPENSSL_VERSION_NUMBER >= 0x30500000 BOOST_CHECK_EQUAL(ret, -1); #else // does not test anything meaningful, but avoids a "ret unused" warning