Skip to content

Commit 747114f

Browse files
committed
verify_krb_v5_tgt: auth name must be const to match struct sudo_auth.
1 parent 9ef5215 commit 747114f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/sudoers/auth/kerb5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
#ifndef HAVE_KRB5_VERIFY_USER
5555
static int verify_krb_v5_tgt(const struct sudoers_context *, krb5_context,
56-
krb5_creds *, char *);
56+
krb5_creds *, const char *);
5757
#endif
5858
static struct _sudo_krb5_data {
5959
krb5_context sudo_context;
@@ -308,7 +308,7 @@ sudo_krb5_cleanup(const struct sudoers_context *ctx, struct passwd *pw,
308308
*/
309309
static int
310310
verify_krb_v5_tgt(const struct sudoers_context *ctx, krb5_context sudo_context,
311-
krb5_creds *cred, char *auth_name)
311+
krb5_creds *cred, const char *auth_name)
312312
{
313313
krb5_error_code error;
314314
krb5_principal server;

0 commit comments

Comments
 (0)