]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Constify name field in four plugin vtables 1215/head
authorPavel Březina <pbrezina@redhat.com>
Wed, 8 Sep 2021 13:44:30 +0000 (15:44 +0200)
committerGreg Hudson <ghudson@mit.edu>
Fri, 10 Sep 2021 15:25:58 +0000 (11:25 -0400)
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
src/include/krb5/authdata_plugin.h
src/include/krb5/clpreauth_plugin.h
src/include/krb5/kdcpreauth_plugin.h

index 64dda75ec230867d1a035798566cbb7604a56cf6..3315d77d9a3b90434795af5e1534745b770357d4 100644 (file)
@@ -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;
index 5bb95fa5987635812a9d866863c7ddab8c85f496..d59a8eb7a2d59ea6288e65a94628d0c264d759df 100644 (file)
@@ -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;
index 22a5e9bc7a43fd1bc57dc62e2eedfc4ae8bc6943..8832a687e90b82fd7dafb17e19ab533d90473310 100644 (file)
@@ -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. */
index 3a47542340bb41f8cb8813f9adf269cb6b60be5d..b0daae16be15cfdf81fee445e04d04d2c9443e1a 100644 (file)
@@ -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. */