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

NAME

6       CURLOPT_SOCKS5_GSSAPI_NEC  - set socks proxy gssapi negotiation protec‐
7       tion
8

SYNOPSIS

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

DESCRIPTION

16       Pass  a  long set to 1 to enable or 0 to disable. As part of the gssapi
17       negotiation a protection mode is negotiated. The RFC1961 says  in  sec‐
18       tion  4.3/4.4 it should be protected, but the NEC reference implementa‐
19       tion does not.  If enabled, this option allows the unprotected exchange
20       of the protection mode negotiation.
21

DEFAULT

23       ?
24

PROTOCOLS

26       Most
27

EXAMPLE

29       CURL *curl = curl_easy_init();
30       if(curl) {
31         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
32         curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://proxy");
33         curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 1L);
34         ret = curl_easy_perform(curl);
35         curl_easy_cleanup(curl);
36       }
37

AVAILABILITY

39       Added in 7.19.4
40

RETURN VALUE

42       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
43       if not.
44

SEE ALSO

46       CURLOPT_SOCKS5_GSSAPI_SERVICE(3), CURLOPT_PROXY(3),
47
48
49
50libcurl 7.64.0                   May 31, 2017     CURLOPT_SOCKS5_GSSAPI_NEC(3)
Impressum