GNURLOPT_PROXY_SSLVERSION(3)
πΈ NAME πΈ
okay bestie, welcome to GNURLOPT_PROXY_SSLVERSION(3) π β this page belongs to the curl_easy_setopt options manual crew, and it's all about CURLOPT_PROXY_SSLVERSION: set preferred proxy TLS/SSL version. periodt. β¨
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSLVERSION, long
version);
π DESCRIPTION π
Pass a long as the parameter, bestie, and it controls which version of SSL/TLS to attempt to use when connecting to an HTTPS proxy. no cap. π«Ά
Use one of the available defines for this purpose. The available options are:
CURL_SSLVERSION_DEFAULTβ the default action. This will attempt to figure out the remote SSL protocol version.CURL_SSLVERSION_TLSv1βTLSv1.xCURL_SSLVERSION_TLSv1_0βTLSv1.0CURL_SSLVERSION_TLSv1_1βTLSv1.1CURL_SSLVERSION_TLSv1_2βTLSv1.2CURL_SSLVERSION_TLSv1_3βTLSv1.3
The maximum TLS version can be set by using one of the CURL_SSLVERSION_MAX_ macros below. It is also possible to OR one of the CURL_SSLVERSION_ macros with one of the CURL_SSLVERSION_MAX_ macros. π
π¨ the MAX macros are not supported for WolfSSL.
CURL_SSLVERSION_MAX_DEFAULTβ the flag defines the maximum supported TLS version asTLSv1.2, or the default value from the SSL library. (Added in7.54.0)CURL_SSLVERSION_MAX_TLSv1_0β the flag defines maximum supported TLS version asTLSv1.0. (Added in7.54.0)CURL_SSLVERSION_MAX_TLSv1_1β the flag defines maximum supported TLS version asTLSv1.1. (Added in7.54.0)CURL_SSLVERSION_MAX_TLSv1_2β the flag defines maximum supported TLS version asTLSv1.2. (Added in7.54.0)CURL_SSLVERSION_MAX_TLSv1_3β the flag defines maximum supported TLS version asTLSv1.3. (Added in7.54.0)
π°οΈ tiny time-travel warning: in versions of curl prior to 7.54 the CURL_SSLVERSION_TLS options were documented to allow only the specified TLS version, but behavior was inconsistent depending on the TLS library.
π DEFAULT π
CURL_SSLVERSION_DEFAULT is the default, periodt. π
π PROTOCOLS π
All π β yes bestie, all of them.
π§ EXAMPLE π§
example time, bestie β this is the exact snippet:
CURL *curl = curl_easy_init();
if(curl) {
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, CURL_SSLVERSION_TLSv1);
/* Perform the request */
curl_easy_perform(curl);
}
β AVAILABILITY β
Added in 7.52.0. slay. β
π₯ RETURN VALUE π₯
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. that's it. π₯
π¦ SEE ALSO π¦
π that's the whole page, bestie. source/version: libcurl 7.52.0; date: 16 Nov 2016; footer manual: GNURLOPT_P..._SSLVERSION(3). mwah πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2019, 2018, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms