mirror of
https://github.com/curl/curl.git
synced 2026-06-10 01:54:15 +03:00
only enable test758 code when using openssl and correct version
This commit is contained in:
parent
3b30be5411
commit
6ddd8f2c0b
1 changed files with 20 additions and 0 deletions
|
|
@ -32,9 +32,21 @@
|
|||
|
||||
#include "testtrace.h"
|
||||
#include "memdebug.h"
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
|
||||
#include <openssl/x509.h>
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
#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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue