1CURLOPT_SOCKS5_GSSAPI_NEC(3)curl_easy_setopt optionsCURLOPT_SOCKS5_GSSAPI_NEC(3)
2
3
4

NAME

6       CURLOPT_SOCKS5_GSSAPI_NEC - socks proxy gssapi negotiation protection
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKS5_GSSAPI_NEC, long nec);
12

DESCRIPTION

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

DEFAULT

21       ?
22

PROTOCOLS

24       Most
25

EXAMPLE

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

AVAILABILITY

37       Added in 7.19.4
38

RETURN VALUE

40       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
41       if not.
42

SEE ALSO

44       CURLOPT_SOCKS5_GSSAPI_SERVICE(3), CURLOPT_PROXY(3),
45
46
47
48libcurl 7.82.0                 November 26, 2021  CURLOPT_SOCKS5_GSSAPI_NEC(3)
Impressum