kerberos: drop logic for MIT Kerberos <1.2.3 (pre-2002) versions

curl requires 1.2.4 or newer.

Also:
- vms: stop defining `gss_nt_service_name`. Added in
  f9cf3de70b, symbol not used in curl code
  since 355bf01c82.

Closes #18978
This commit is contained in:
Viktor Szakats 2025-10-09 17:15:02 +02:00
parent be5a5c10d4
commit 0d560d00fa
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 1 additions and 65 deletions

View file

@ -1855,29 +1855,6 @@ if test x"$want_gss" = xyes; then
if test "x$not_mit" = "x1"; then
dnl MIT not found
AC_MSG_ERROR([MIT or GNU GSS library required, but not found])
else
dnl MIT found
dnl check if we have a really old MIT Kerberos version (<= 1.2)
AC_MSG_CHECKING([if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_generic.h>
#include <gssapi/gssapi_krb5.h>
]],[[
gss_import_name(
(OM_uint32 *)0,
(gss_buffer_t)0,
GSS_C_NT_HOSTBASED_SERVICE,
(gss_name_t *)0);
]])
],[
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
AC_DEFINE(HAVE_OLD_GSSMIT, 1,
[if you have an old MIT Kerberos version, lacking GSS_C_NT_HOSTBASED_SERVICE])
])
fi
]
)