From c572e31ff59465e40ee10ef4c35fb4d1593ccb69 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 5 Sep 2007 22:39:55 +0000 Subject: [PATCH] Remove call to krb5_cc_register() as it is not needed for modern kerb5. --- auth/kerb5.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/auth/kerb5.c b/auth/kerb5.c index b9527475c..33e95784f 100644 --- a/auth/kerb5.c +++ b/auth/kerb5.c @@ -74,8 +74,6 @@ static struct _sudo_krb5_data { } sudo_krb5_data = { NULL, NULL, NULL }; typedef struct _sudo_krb5_data *sudo_krb5_datap; -extern const krb5_cc_ops krb5_mcc_ops; - int kerb5_init(pw, promptp, auth) struct passwd *pw; @@ -128,16 +126,6 @@ kerb5_init(pw, promptp, auth) free(pname); #endif - /* For CNS compatibility */ - if ((error = krb5_cc_register(sudo_context, &krb5_mcc_ops, FALSE))) { - if (error != KRB5_CC_TYPE_EXISTS) { - log_error(NO_EXIT|NO_MAIL, - "%s: unable to use Memory ccache: %s", auth->name, - error_message(error)); - return(AUTH_FAILURE); - } - } - (void) snprintf(cache_name, sizeof(cache_name), "MEMORY:sudocc_%ld", (long) getpid()); if ((error = krb5_cc_resolve(sudo_context, cache_name, -- 2.40.0