mirror of
https://github.com/curl/curl.git
synced 2026-04-14 18:21:40 +03:00
build: do not include wolfSSL header in curl_setup.h
To fix building tests/server with cmake and both wolfSSL and OpenSSL
enabled (MultiSSL).
tests/server do not have libcurl dependency header paths setup because
it does not use libcurl. The code however includes `curl_setup.h`, which
tried including `wolfssl/version.h` before this patch to verify if the
wolfSSL coexist feature is available. Without a header path, it failed:
```
In file included from bld/tests/server/servers.c:3:
In file included from tests/server/first.h:40:
lib/curl_setup.h:737:12: fatal error: 'wolfssl/version.h' file not found
737 | # include <wolfssl/version.h>
| ^~~~~~~~~~~~~~~~~~~
1 error generated.
```
Ref: https://github.com/curl/curl/actions/runs/22410066319/job/64880787424#step:46:76
Fix by moving the include and version check to `vtls/wolfssl.c`.
Also: add an early version check to cmake.
Follow-up to 16f073ef49 #16973
Cherry-picked from #20720
Closes #20726
This commit is contained in:
parent
aae361242f
commit
b56e103d4d
3 changed files with 10 additions and 8 deletions
|
|
@ -883,6 +883,10 @@ if(CURL_USE_WOLFSSL)
|
|||
endif()
|
||||
set(_curl_ca_bundle_supported TRUE)
|
||||
|
||||
if(USE_OPENSSL AND WOLFSSL_VERSION VERSION_LESS 5.7.6)
|
||||
message(FATAL_ERROR "wolfSSL 5.7.6 or newer is required to coexist with OpenSSL.")
|
||||
endif()
|
||||
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "WOLFSSL_OPTIONS_IGNORE_SYS")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue