From 789a4d315f321ef6ac085bf227c4ad1a34367086 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20B=C5=99ezina?= Date: Wed, 8 Sep 2021 15:44:30 +0200 Subject: [PATCH] Constify name field in four plugin vtables For consistency with the other plugin vtables, declare the name field as const char * in the audit, authdata, clpreauth, and kdcpreauth pluggable interface headers. [ghudson@mit.edu: rewrote commit message] ticket: 9028 (new) --- src/include/krb5/audit_plugin.h | 2 +- src/include/krb5/authdata_plugin.h | 2 +- src/include/krb5/clpreauth_plugin.h | 2 +- src/include/krb5/kdcpreauth_plugin.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/krb5/audit_plugin.h b/src/include/krb5/audit_plugin.h index 64dda75ec2..3315d77d9a 100644 --- a/src/include/krb5/audit_plugin.h +++ b/src/include/krb5/audit_plugin.h @@ -255,7 +255,7 @@ typedef krb5_error_code /* vtable declaration */ typedef struct krb5_audit_vtable_st { /* Mandatory: name of module. */ - char *name; + const char *name; krb5_audit_open_fn open; krb5_audit_close_fn close; krb5_audit_kdc_start_fn kdc_start; diff --git a/src/include/krb5/authdata_plugin.h b/src/include/krb5/authdata_plugin.h index 5bb95fa598..d59a8eb7a2 100644 --- a/src/include/krb5/authdata_plugin.h +++ b/src/include/krb5/authdata_plugin.h @@ -191,7 +191,7 @@ typedef krb5_error_code void *dst_request_context); typedef struct krb5plugin_authdata_client_ftable_v0 { - char *name; + const char *name; krb5_authdatatype *ad_type_list; authdata_client_plugin_init_proc init; authdata_client_plugin_fini_proc fini; diff --git a/src/include/krb5/clpreauth_plugin.h b/src/include/krb5/clpreauth_plugin.h index 22a5e9bc7a..8832a687e9 100644 --- a/src/include/krb5/clpreauth_plugin.h +++ b/src/include/krb5/clpreauth_plugin.h @@ -299,7 +299,7 @@ typedef krb5_error_code typedef struct krb5_clpreauth_vtable_st { /* Mandatory: name of module. */ - char *name; + const char *name; /* Mandatory: pointer to zero-terminated list of pa_types which this module * can provide services for. */ diff --git a/src/include/krb5/kdcpreauth_plugin.h b/src/include/krb5/kdcpreauth_plugin.h index 3a47542340..b0daae16be 100644 --- a/src/include/krb5/kdcpreauth_plugin.h +++ b/src/include/krb5/kdcpreauth_plugin.h @@ -380,7 +380,7 @@ typedef krb5_error_code typedef struct krb5_kdcpreauth_vtable_st { /* Mandatory: name of module. */ - char *name; + const char *name; /* Mandatory: pointer to zero-terminated list of pa_types which this module * can provide services for. */ -- 2.47.2