CURLOPT_SOCKS5_GSSAPI_NEC.3 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .\" generated by cd2nroff 0.1 from CURLOPT_SOCKS5_GSSAPI_NEC.md
  2. .TH CURLOPT_SOCKS5_GSSAPI_NEC 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_SOCKS5_GSSAPI_NEC \- SOCKS proxy GSSAPI negotiation protection
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKS5_GSSAPI_NEC, long nec);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a long set to 1 to enable or 0 to disable. As part of the GSSAPI
  12. negotiation a protection mode is negotiated. The RFC 1961 says in section
  13. 4.3/4.4 it should be protected, but the NEC reference implementation does not.
  14. If enabled, this option allows the unprotected exchange of the protection mode
  15. negotiation.
  16. .SH DEFAULT
  17. ?
  18. .SH PROTOCOLS
  19. This functionality affects all supported protocols
  20. .SH EXAMPLE
  21. .nf
  22. int main(void)
  23. {
  24. CURL *curl = curl_easy_init();
  25. if(curl) {
  26. CURLcode res;
  27. curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
  28. curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://proxy");
  29. curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 1L);
  30. res = curl_easy_perform(curl);
  31. curl_easy_cleanup(curl);
  32. }
  33. }
  34. .fi
  35. .SH AVAILABILITY
  36. Added in curl 7.19.4
  37. .SH RETURN VALUE
  38. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
  39. .SH SEE ALSO
  40. .BR CURLOPT_PROXY (3),
  41. .BR CURLOPT_PROXY_SERVICE_NAME (3)