diff -ruN a/src/mod_auth_kerb.c b/src/mod_auth_kerb.c --- a/src/mod_auth_kerb.c 2021-12-29 09:22:17.918692602 +0100 +++ b/src/mod_auth_kerb.c 2021-12-29 09:23:20.267889214 +0100 @@ -2061,28 +2061,6 @@ return ret; } -static int -have_rcache_type(const char *type) -{ - krb5_error_code ret; - krb5_context context; - krb5_rcache id = NULL; - int found; - - ret = krb5_init_context(&context); - if (ret) - return 0; - - ret = krb5_rc_resolve_full(context, &id, "none:"); - found = (ret == 0); - - if (ret == 0) - krb5_rc_destroy(context, id); - krb5_free_context(context); - - return found; -} - /*************************************************************************** Module Setup/Configuration ***************************************************************************/ @@ -2143,7 +2121,7 @@ #ifndef HEIMDAL /* Suppress the MIT replay cache. Requires MIT Kerberos 1.4.0 or later. 1.3.x are covered by the hack overiding the replay calls */ - if (getenv("KRB5RCACHETYPE") == NULL && have_rcache_type("none")) + if (getenv("KRB5RCACHETYPE") == NULL) putenv(strdup("KRB5RCACHETYPE=none")); #endif } @@ -2185,7 +2163,7 @@ #ifndef HEIMDAL /* Suppress the MIT replay cache. Requires MIT Kerberos 1.4.0 or later. 1.3.x are covered by the hack overiding the replay calls */ - if (getenv("KRB5RCACHETYPE") == NULL && have_rcache_type("none")) + if (getenv("KRB5RCACHETYPE") == NULL) putenv(strdup("KRB5RCACHETYPE=none")); #endif #ifdef STANDARD20_MODULE_STUFF