GNURLOPT_G...DELEGATION(3)
π
GNURLOPT_G...DELEGATION(3) β like, the curl_easy_setopt options girlies β¨
okay so bestie, this is a page from the curl_easy_setopt options family, and today's main character is the one about GSS-API delegation. yes it's niche. yes it's iconic. let's get into it π
β¨ NAME β¨
CURLOPT_GSSAPI_DELEGATION β sets what GSS-API delegation is allowed, fr fr
π¦ SYNOPSIS π¦
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_GSSAPI_DELEGATION, long
level);
like, that's the whole vibe. handle, the option, and a long level. simple. slay.
π DESCRIPTION π
okay so you set that long parameter level to CURLGSSAPI_DELEGATION_FLAG when you wanna allow unconditional GSSAPI credential delegation. like, no conditions, just vibes, go off π
but heads up β delegation is disabled by default since 7.21.7, so it's giving "you have to ask for it" energy.
you can also set the parameter to CURLGSSAPI_DELEGATION_POLICY_FLAG which means: only delegate if the OK-AS-DELEGATE flag is set in the service ticket. that one only works in case this feature is supported by the GSS-API implementation and the definition of GSS_C_DELEG_POLICY_FLAG was available at compile-time. so yeah, conditional on conditions, iykyk π
π DEFAULT π
CURLGSSAPI_DELEGATION_NONE
the default is none. no delegation. nothing. she's resting π§
π PROTOCOLS π
HTTP β that's it, that's the list π
π₯ EXAMPLE π₯
here's the whole thing in action, no cap:
CURL *curl = curl_easy_init();
if(curl) {
CURLcode ret;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* delegate if okayed by policy */
curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION,
CURLGSSAPI_DELEGATION_POLICY_FLAG);
ret = curl_easy_perform(curl);
}
see that comment? delegate if okayed by policy. that's the whole mood π«Ά
β AVAILABILITY β
Added in 7.22.0 β so she's been around a minute, a real veteran π
πΈ RETURN VALUE πΈ
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. like, she'll tell you if she doesn't know her. no guessing π
π SEE ALSO π
ok warning time bestie: this is one of those options where the compile-time stuff actually matters β if GSS_C_DELEG_POLICY_FLAG wasn't around when it got built, the policy flag path is just not happening. not me making up rules, that's literally the description π
and that's the page!! mwah π this was libcurl 7.37.0, dated 19 Jun 2014 β yes she's a 2014 girlie and she still ate. πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms