GNURLOPT_PROXY_TLSAUTH_PASSWORD(3)

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

πŸ’… CURLOPT_PROXY_TLSAUTH_PASSWORD β€” GNURLOPT_PROXY_TLSAUTH_PASSWORD(3), a curl_easy_setopt options page from the gnurl section 3 manual πŸ’…

🌸 NAME 🌸

CURLOPT_PROXY_TLSAUTH_PASSWORD β€” the password to use for proxy TLS authentication, periodt.

✨ SYNOPSIS ✨

#include <gnurl/curl.h>

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_TLSAUTH_PASSWORD,
       char *pwd);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so bestie, you pass a char * as the parameter, and it should point to the null-terminated password to use for the TLS authentication method specified with the CURLOPT_PROXY_TLSAUTH_TYPE(3) option. This one requires that the CURLOPT_PROXY_TLSAUTH_USERNAME(3) option also be set β€” both pieces, no skipping.

The application does not have to keep the string around after setting this option. Set it, hand it over, and let it live its life, iykyk.

πŸŽ€ DEFAULT πŸŽ€

NULL β€” literally nothing is set by default.

🌈 PROTOCOLS 🌈

All β€” every protocol, no cap.

⭐ EXAMPLE ⭐

CURL *curl = curl_easy_init();
if(curl) {
  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
  curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
  curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "SRP");
  curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "user");
  curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "secret");
  ret = curl_easy_perform(curl);
  curl_easy_cleanup(curl);
}

🧚 AVAILABILITY 🧚

Added in 7.52.0 β€” that's when this icon entered the chat.

πŸ”₯ RETURN VALUE πŸ”₯

Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. Heap space matters, bestie.

πŸ‘‘ SEE ALSO πŸ‘‘


xoxo, from the libcurl 7.52.0 manual, dated 16 Nov 2016 πŸ’–

πŸ“¦ where this page comes from