curl_gssapi: document/update feature availability

- update `GSS_C_DELEG_POLICY_FLAG` comment to include Apple GSS, add
  date, and amend MIT Kerberos version to 1.7+ (was: 1.8+)
  Ref: 45875a4d7b
  Ref: 1635de38a8

- document `HAVE_GSS_SET_NEG_MECHS`/`gss_set_neg_mechs()`.
  Ref: 079eed2cf7
  It's also committed to Heimdal, but not present in a release
  as of 7.8.0 (current latest).
  Ref: 735039dbdc

Follow-up to a8881e5e1d #21315 #22410
Follow-up to d169ad68fa #22052

Closes #22419
This commit is contained in:
Viktor Szakats 2026-07-28 17:08:02 +02:00
parent 5e75aedab2
commit 75404bda1a
No known key found for this signature in database

View file

@ -435,7 +435,8 @@ static OM_uint32 stub_gss_indicate_mechs(
return GSS_S_COMPLETE;
}
#ifdef HAVE_GSS_SET_NEG_MECHS
#ifdef HAVE_GSS_SET_NEG_MECHS /* MIT Kerberos 1.8+ (2010-03-02),
missing from Apple GSS, GNU GSS */
static OM_uint32 stub_gss_set_neg_mechs(
OM_uint32 *min,
gss_cred_id_t cred_handle,
@ -509,7 +510,8 @@ OM_uint32 Curl_gss_init_sec_context(struct Curl_easy *data,
req_flags |= GSS_C_MUTUAL_FLAG;
if(data->set.gssapi_delegation & CURLGSSAPI_DELEGATION_POLICY_FLAG) {
#ifdef GSS_C_DELEG_POLICY_FLAG /* MIT Kerberos 1.8+, missing from GNU GSS */
#ifdef GSS_C_DELEG_POLICY_FLAG /* MIT Kerberos 1.7+ (2009-06-02), Apple GSS,
missing from GNU GSS */
req_flags |= GSS_C_DELEG_POLICY_FLAG;
#else
infof(data, "WARNING: support for CURLGSSAPI_DELEGATION_POLICY_FLAG not "