]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove SQUID_CHECK_KRB5_HEIMDAL_BROKEN_KRB5_H macro (#2315)
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 23 Dec 2025 13:16:36 +0000 (13:16 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 23 Dec 2025 16:00:55 +0000 (16:00 +0000)
This was added for FreeBSD 7 issues which can not be replicated
using the current FreeBSD 14.

Heimdal package still lacks C++ wrappers, but this does not seem
to be affecting any currently supported OS. If necessary this
check can be restored with better details about how to replicate.

acinclude/krb5.m4
compat/krb5.h
configure.ac

index d43a0e613a9d9309b762e4650f1a8feb95e136e3..61f44de94b13a916d84bdc3ff04415548a5d94bc 100644 (file)
@@ -45,37 +45,6 @@ AC_DEFUN([SQUID_CHECK_SOLARIS_KRB5],[
   ])
 ])
 
-AC_DEFUN([SQUID_CHECK_KRB5_HEIMDAL_BROKEN_KRB5_H], [
-  AC_CACHE_CHECK([for broken Heimdal krb5.h],squid_cv_broken_heimdal_krb5_h, [
-    SQUID_STATE_SAVE(squid_krb5_heimdal_test)
-    CPPFLAGS="-I${srcdir:-.} $CPPFLAGS"
-    AC_LINK_IFELSE([AC_LANG_SOURCE([[
-#include <krb5.h>
-int
-main(void)
-{
-        krb5_context context;
-        krb5_init_context(&context);
-        return 0;
-}
-]])], [ squid_cv_broken_heimdal_krb5_h=no ], [
-    AC_LINK_IFELSE([AC_LANG_SOURCE([[
-#define HAVE_BROKEN_HEIMDAL_KRB5_H  1
-#include "compat/krb5.h"
-int
-main(void)
-{
-        krb5_context context;
-        krb5_init_context(&context);
-        return 0;
-}
-]])], [ squid_cv_broken_heimdal_krb5_h=yes ], [ squid_cv_broken_heimdal_krb5_h=no ])
-    ])
-    SQUID_STATE_ROLLBACK(squid_krb5_heimdal_test)
-  ])
-  SQUID_DEFINE_BOOL(HAVE_BROKEN_HEIMDAL_KRB5_H,$squid_cv_broken_heimdal_krb5_h,[Heimdal krb5.h is broken for C++])
-]) dnl SQUID_CHECK_KRB5_HEIMDAL_BROKEN_KRB5_H
-
 dnl check whether the kerberos context has a memory cache. Sets
 dnl squid_cv_memory_cache if that's the case.
 AC_DEFUN([SQUID_CHECK_KRB5_CONTEXT_MEMORY_CACHE],[
index 28e5d4239ade99298927864dc19440f2b7445f81..654eb4fbecd4a6925d8bd07c17cf2d3ef9b31d13 100644 (file)
 #define SQUID_COMPAT_KRB5_H
 
 /*
- * The Kerberos library krb5.h header file has various major
- * bugs in some implementations:
+ * The Kerberos library has various major bugs.
  *
  * - MacOS marks as deprecated the POSIX compatible APIs.
  *   Apparently to encourage code to use their internal APIs.
  *
- * - Heimdal may lack the extern "C" syntax for building in C++
- *
  * This file exists to fix those issues the best we can and to
  * ensure the logic is identical in Squid code, Squid helpers,
  * and autoconf tests. See acinclude/krb5.h for the latter.
 #  if USE_APPLE_KRB5
 #    define KERBEROS_APPLE_DEPRECATED(x)
 #  endif
-#  if HAVE_BROKEN_HEIMDAL_KRB5_H && defined(__cplusplus)
-extern "C" {
-#      include <krb5.h>
-}
-#  else
-#    include <krb5.h>
-#  endif
+#include <krb5.h>
 #endif /* HAVE_KRB5_H */
 
 #endif /* SQUID_COMPAT_KRB5_H */
index cc7856580de8b987117cd587947252b0ed89a790..f08ba446dc469c6258b526ea7bddf2980eb90e05 100644 (file)
@@ -1177,7 +1177,6 @@ SQUID_CHECK_LIB_WORKS(heimdal-krb5,[
       AC_CHECK_HEADERS(krb5.h com_err.h et/com_err.h)
 
       LIBS="$LIBHEIMDAL_KRB5_PATH $LIBHEIMDAL_KRB5_LIBS $LIBS"
-      SQUID_CHECK_KRB5_HEIMDAL_BROKEN_KRB5_H
       SQUID_CHECK_KRB5_FUNCS
     ])
   ])