GNURLOPT_P...SL_OPTIONS(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’… 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 to 0, 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 in 7.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 in 7.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 with CURLSSLOPT_NO_REVOKE, the latter takes precedence. (Added in 7.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:


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