CURLOPT_GSSAPI_DELEGATION.md add history, drop cast

This commit is contained in:
Viktor Szakats 2025-08-01 17:24:16 +02:00
parent 5688156d80
commit a8978623a6
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -51,12 +51,17 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* delegate if okayed by policy */
curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION,
(long)CURLGSSAPI_DELEGATION_POLICY_FLAG);
CURLGSSAPI_DELEGATION_POLICY_FLAG);
ret = curl_easy_perform(curl);
}
}
~~~
# HISTORY
**CURLGSSAPI_DELEGATION_*** macros became `long` types in 8.16.0, prior to this
version a `long` cast was necessary when passed to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE