From 747114f33152fce8d3870ae7e884f985bebd8ed4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 31 Oct 2023 10:13:19 -0600 Subject: [PATCH] verify_krb_v5_tgt: auth name must be const to match struct sudo_auth. --- plugins/sudoers/auth/kerb5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sudoers/auth/kerb5.c b/plugins/sudoers/auth/kerb5.c index fc1c36f8f..f7bab93ba 100644 --- a/plugins/sudoers/auth/kerb5.c +++ b/plugins/sudoers/auth/kerb5.c @@ -53,7 +53,7 @@ #ifndef HAVE_KRB5_VERIFY_USER static int verify_krb_v5_tgt(const struct sudoers_context *, krb5_context, - krb5_creds *, char *); + krb5_creds *, const char *); #endif static struct _sudo_krb5_data { krb5_context sudo_context; @@ -308,7 +308,7 @@ sudo_krb5_cleanup(const struct sudoers_context *ctx, struct passwd *pw, */ static int verify_krb_v5_tgt(const struct sudoers_context *ctx, krb5_context sudo_context, - krb5_creds *cred, char *auth_name) + krb5_creds *cred, const char *auth_name) { krb5_error_code error; krb5_principal server;