mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +03:00
cmake: CURL_CA_FALLBACK only works with OpenSSL
Ref: 2f6524ce3c #18364
Ref: #18362
Closes #18365
This commit is contained in:
parent
6d53263f0b
commit
d6c51a8fda
2 changed files with 6 additions and 2 deletions
|
|
@ -1501,12 +1501,16 @@ if(_curl_ca_bundle_supported)
|
|||
set(CURL_CA_BUNDLE "auto" CACHE
|
||||
STRING "Path to the CA bundle. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.")
|
||||
set(CURL_CA_FALLBACK OFF CACHE
|
||||
BOOL "Use built-in CA store of TLS backend. Defaults to OFF")
|
||||
BOOL "Use built-in CA store of OpenSSL. Defaults to OFF")
|
||||
set(CURL_CA_PATH "auto" CACHE
|
||||
STRING "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.")
|
||||
set(CURL_CA_EMBED "" CACHE
|
||||
STRING "Path to the CA bundle to embed in the curl tool.")
|
||||
|
||||
if(CURL_CA_FALLBACK AND NOT CURL_USE_OPENSSL)
|
||||
message(FATAL_ERROR "CURL_CA_FALLBACK only works with OpenSSL.")
|
||||
endif()
|
||||
|
||||
if(CURL_CA_BUNDLE STREQUAL "")
|
||||
message(FATAL_ERROR "Invalid value of CURL_CA_BUNDLE. Use 'none', 'auto' or file path.")
|
||||
elseif(CURL_CA_BUNDLE STREQUAL "none")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue