CURLOPT_GSSAPI_DELEGATION.3 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .\" generated by cd2nroff 0.1 from CURLOPT_GSSAPI_DELEGATION.md
  2. .TH CURLOPT_GSSAPI_DELEGATION 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_GSSAPI_DELEGATION \- allowed GSS\-API delegation
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_GSSAPI_DELEGATION, long level);
  9. .fi
  10. .SH DESCRIPTION
  11. Set the long parameter \fIlevel\fP to \fBCURLGSSAPI_DELEGATION_FLAG\fP to allow
  12. unconditional GSSAPI credential delegation. The delegation is disabled by
  13. default since 7.21.7. Set the parameter to
  14. \fBCURLGSSAPI_DELEGATION_POLICY_FLAG\fP to delegate only if the OK\-AS\-DELEGATE
  15. flag is set in the service ticket in case this feature is supported by the
  16. GSS\-API implementation and the definition of \fIGSS_C_DELEG_POLICY_FLAG\fP was
  17. available at compile\-time.
  18. .SH DEFAULT
  19. CURLGSSAPI_DELEGATION_NONE
  20. .SH PROTOCOLS
  21. This functionality affects http only
  22. .SH EXAMPLE
  23. .nf
  24. int main(void)
  25. {
  26. CURL *curl = curl_easy_init();
  27. if(curl) {
  28. CURLcode ret;
  29. curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
  30. /* delegate if okayed by policy */
  31. curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION,
  32. (long)CURLGSSAPI_DELEGATION_POLICY_FLAG);
  33. ret = curl_easy_perform(curl);
  34. }
  35. }
  36. .fi
  37. .SH AVAILABILITY
  38. Added in curl 7.22.0
  39. .SH RETURN VALUE
  40. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
  41. .SH SEE ALSO
  42. .BR CURLOPT_HTTPAUTH (3),
  43. .BR CURLOPT_PROXYAUTH (3)