ctest: Add explicit options for TLS server verification

Add a dedicated `TLSVerify` ctest option and a `CTEST_TLS_VERIFY`
variable to control it.  Deprecate `CurlOptions` because it exposes
internal implementation details.
This commit is contained in:
Brad King
2024-03-01 10:56:03 -05:00
parent 51728a6dd3
commit 0aba13a2f3
28 changed files with 113 additions and 13 deletions

View File

@@ -1,6 +1,10 @@
CTEST_CURL_OPTIONS
------------------
.. deprecated:: 3.30
Use the :variable:`CTEST_TLS_VERIFY` variable instead.
.. versionadded:: 3.1
Specify the CTest ``CurlOptions`` setting

View File

@@ -0,0 +1,10 @@
CTEST_TLS_VERIFY
----------------
.. versionadded:: 3.30
Specify the CTest ``TLSVerify`` setting in a :manual:`ctest(1)`
:ref:`Dashboard Client` script or in project ``CMakeLists.txt`` code
before including the :module:`CTest` module. The value is a boolean
indicating whether to verify the server certificate when submitting
to a dashboard via ``https://`` URLs.