From 6ddd8f2c0bbfcb0847b1ee7f257fb772fa47310c Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Thu, 14 Aug 2025 14:32:04 +0200 Subject: [PATCH] only enable test758 code when using openssl and correct version --- tests/libtest/lib758.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/libtest/lib758.c b/tests/libtest/lib758.c index 6f8c57b536..14db443e6e 100644 --- a/tests/libtest/lib758.c +++ b/tests/libtest/lib758.c @@ -32,9 +32,21 @@ #include "testtrace.h" #include "memdebug.h" + +#ifdef USE_OPENSSL + #include #include +#if ((OPENSSL_VERSION_NUMBER >= 0x30000000L) && \ + !defined(LIBRESSL_VERSION_NUMBER) && \ + !defined(OPENSSL_IS_BORINGSSL)) +#define T578_ENABLED +#endif +#endif + +#ifdef T578_ENABLED + static struct t758_ctx { int socket_calls; int max_socket_calls; @@ -488,3 +500,11 @@ static CURLcode test_lib758(const char *URL) return rc; } + +#else /* T578_ENABLED */ +static CURLcode test_lib758(const char *URL) +{ + (void)URL; + return CURLE_OK; +} +#endif