GNURLOPT_P...SL_OPTIONS(3)
π GNURLOPT_P...SL_OPTIONS(3) π
okay bestie, you're on the GNURLOPT_P...SL_OPTIONS(3) page, which is one of the curl_easy_setopt options pages, and today we are talking about CURLOPT_PROXY_SSL_OPTIONS. it's giving proxy SSL behavior bitmask realness, and we're gonna keep every fact, no cap. π
β¨ NAME β¨
CURLOPT_PROXY_SSL_OPTIONS β set proxy SSL behavior options. that's the name, she's clear, she's iconic. π
πΈ SYNOPSIS πΈ
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSL_OPTIONS, long
bitmask);
π¦ DESCRIPTION π¦
so you pass a long with a bitmask to tell libcurl about specific SSL behaviors. available bits are these cuties:
CURLSSLOPT_ALLOW_BEASTβ tells libcurl to not attempt to use any workarounds for a security flaw in the SSL3 and TLS1.0 protocols. if this option isn't used or this bit is set to0, the SSL layer libcurl uses may use a work-around for this flaw although it might cause interoperability problems with some (older) SSL implementations.
WARNING: avoiding this work-around lessens the security, and by setting this option to 1 you ask for exactly that. this option is only supported for Secure Transport, NSS and OpenSSL.
CURLSSLOPT_NO_REVOKEβ tells libcurl to disable certificate revocation checks for those SSL backends where such behavior is present. this option is only supported for Schannel (the native Windows SSL library), with an exception in the case of Windows' Untrusted Publishers block list which it seems can't be bypassed. (Added in7.44.0)CURLSSLOPT_NO_PARTIALCHAINβ tells libcurl to not accept "partial" certificate chains, which it otherwise does by default. this option is only supported for OpenSSL and will fail the certificate verification if the chain ends with an intermediate certificate and not with a root cert. (Added in7.68.0)CURLSSLOPT_REVOKE_BEST_EFFORTβ tells libcurl to ignore certificate revocation checks in case of missing or offline distribution points for those SSL backends where such behavior is present. this option is only supported for Schannel (the native Windows SSL library). if combined withCURLSSLOPT_NO_REVOKE, the latter takes precedence. (Added in7.70.0)
π DEFAULT π
the default is literally 0, bestie. π
π PROTOCOLS π
All TLS-based protocols. periodt. π«Ά
β AVAILABLE β
Added in 7.52.0. she's been here since then, iconic. β¨
π₯ EXAMPLE π₯
here's the whole vibe in code form:
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
/* weaken TLS only for use with silly proxies */
curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, CURLSSLOPT_ALLOW_BEAST |
CURLSSLOPT_NO_REVOKE);
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
π RETURN VALUE π
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. no cap, bestie. π¦
πΈ SEE ALSO πΈ
go give these pages a little kiss:
CURLOPT_PROXY_SSLVERSION(3)CURLOPT_PROXY_SSL_CIPHER_LIST(3)CURLOPT_SSLVERSION(3)CURLOPT_SSL_CIPHER_LIST(3),
mwah π this page is from libcurl 7.52.0, dated 16 Nov 2016, and it lives under GNURLOPT_P...SL_OPTIONS(3). bye bestie, go set those proxy SSL options with main character energy! πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, 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