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