mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
cmCurl: Assert that we cover all TLS versions supported by our vendored curl
This commit is contained in:
@@ -39,6 +39,14 @@
|
|||||||
# define CURL_SSLVERSION_TLSv1_3 CURL_SSLVERSION_LAST
|
# define CURL_SSLVERSION_TLSv1_3 CURL_SSLVERSION_LAST
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Make sure we keep up with new TLS versions supported by curl.
|
||||||
|
// Do this only for our vendored curl to avoid breaking builds
|
||||||
|
// against external future versions of curl.
|
||||||
|
#if !defined(CMAKE_USE_SYSTEM_CURL)
|
||||||
|
static_assert(CURL_SSLVERSION_LAST == 8,
|
||||||
|
"A new CURL_SSLVERSION_ may be available!");
|
||||||
|
#endif
|
||||||
|
|
||||||
cm::optional<int> cmCurlParseTLSVersion(cm::string_view tls_version)
|
cm::optional<int> cmCurlParseTLSVersion(cm::string_view tls_version)
|
||||||
{
|
{
|
||||||
cm::optional<int> v;
|
cm::optional<int> v;
|
||||||
|
|||||||
Reference in New Issue
Block a user