GNURLOPT_S...GSSAPI_NEC(3)
π GNURLOPT_S...GSSAPI_NEC(3) π
okay so bestie, this iconic little page is GNURLOPT_S...GSSAPI_NEC(3) from the curl_easy_setopt options manual β yes, the title is a whole keyboard smash, but the vibe is clear: weβre talking about a SOCKS proxy GSSAPI negotiation protection setting. no cap. π«Ά
β¨ NAME β¨
CURLOPT_SOCKS5_GSSAPI_NEC β set socks proxy gssapi negotiation protection. thatβs the name, lowercase βsocks proxy gssapi negotiation protectionβ and all. slay. π
πΈ SYNOPSIS πΈ
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKS5_GSSAPI_NEC, long
nec);
π DESCRIPTION π
CURLOPT_SOCKS5_GSSAPI_NECβ pass a long set to1to enable or0to disable. periodt.
As part of the gssapi negotiation a protection mode is negotiated. RFC1961 says in section 4.3/4.4 it should be protected, but the NEC reference implementation does not. If enabled, this option allows the unprotected exchange of the protection mode negotiation. thatβs the important lore, bestie β donβt lose it. π
π¦ DEFAULT π¦
?
thatβs it. literally a question mark in the manual. we are not making up a default. no cap. π
π PROTOCOLS π
Most.
π EXAMPLE π
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://proxy");
curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 1L);
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
hereβs the example exactly as the page gives it, bestie. π
β AVAILABILITY β
Added in 7.19.4. iconic. β¨
π RETURN VALUE π
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. thatβs the whole return-value tea. π
πΈ SEE ALSO πΈ
and yes, the original list is exactly CURLOPT_SOCKS5_GSSAPI_SERVICE(3), CURLOPT_PROXY(3), β trailing comma included, we donβt make the rules. π
π cute sign-off, bestie: this page comes from source/version libcurl 7.37.0 and is dated 19 Jun 2014. mwah. π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2014, 2017, 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