From: Pavel Březina Date: Wed, 8 Sep 2021 13:44:30 +0000 (+0200) Subject: Constify name field in four plugin vtables X-Git-Tag: krb5-1.20-beta1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1215%2Fhead;p=thirdparty%2Fkrb5.git 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) --- 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. */