1CURLOPT_SOCKS5_GSSAPI_NEC(3)curl_easy_setopt optionsCURLOPT_SOCKS5_GSSAPI_NEC(3)
2
3
4
6 CURLOPT_SOCKS5_GSSAPI_NEC - socks proxy gssapi negotiation protection
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKS5_GSSAPI_NEC, long nec);
12
14 Pass a long set to 1 to enable or 0 to disable. As part of the gssapi
15 negotiation a protection mode is negotiated. The RFC1961 says in sec‐
16 tion 4.3/4.4 it should be protected, but the NEC reference implementa‐
17 tion does not. If enabled, this option allows the unprotected exchange
18 of the protection mode negotiation.
19
21 ?
22
24 Most
25
27 CURL *curl = curl_easy_init();
28 if(curl) {
29 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
30 curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://proxy");
31 curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 1L);
32 ret = curl_easy_perform(curl);
33 curl_easy_cleanup(curl);
34 }
35
37 Added in 7.19.4
38
40 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION
41 if not.
42
44 CURLOPT_SOCKS5_GSSAPI_SERVICE(3), CURLOPT_PROXY(3),
45
46
47
48libcurl 7.82.0 November 26, 2021 CURLOPT_SOCKS5_GSSAPI_NEC(3)