2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

verify_krb_v5_tgt: auth name must be const to match struct sudo_auth.

This commit is contained in:
Todd C. Miller 2023-10-31 10:13:19 -06:00
parent 9ef52151ef
commit 747114f331

View File

@ -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;