From 03b95927760c705f47c791b37ab5e0e730220d9a Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 17:29:03 +0200 Subject: [PATCH] CURLOPT_SSLVERSION.md add history, drop cast --- docs/libcurl/opts/CURLOPT_SSLVERSION.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_SSLVERSION.md b/docs/libcurl/opts/CURLOPT_SSLVERSION.md index 63440b5576..366edc0a7e 100644 --- a/docs/libcurl/opts/CURLOPT_SSLVERSION.md +++ b/docs/libcurl/opts/CURLOPT_SSLVERSION.md @@ -127,7 +127,7 @@ int main(void) curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); /* ask libcurl to use TLS version 1.0 or later */ - curl_easy_setopt(curl, CURLOPT_SSLVERSION, (long)CURL_SSLVERSION_TLSv1); + curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); /* Perform the request */ curl_easy_perform(curl); @@ -150,6 +150,9 @@ restricted the TLS version to only the specified one. Rustls support added in 8.10.0. +**CURL_SSLVERSION_*** macros became `long` types in 8.16.0, prior to this +version a `long` cast was necessary when passed to curl_easy_setopt(3). + # %AVAILABILITY% # RETURN VALUE