[31056] in CVS-changelog-for-Kerberos-V5
krb5 commit: Constify name field in four plugin vtables
daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Sep 10 12:23:19 2021
Date: Fri, 10 Sep 2021 12:22:30 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <202109101622.18AGMU3O015238@drugstore.mit.edu>
To: <cvs-krb5@mit.edu>
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: multipart/mixed; boundary="===============8152855242369201406=="
Errors-To: cvs-krb5-bounces@mit.edu
--===============8152855242369201406==
Content-Type: text/plain
https://github.com/krb5/krb5/commit/789a4d315f321ef6ac085bf227c4ad1a34367086
commit 789a4d315f321ef6ac085bf227c4ad1a34367086
Author: Pavel Březina <pbrezina@redhat.com>
Date: Wed Sep 8 15:44:30 2021 +0200
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 64dda75..3315d77 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 5bb95fa..d59a8eb 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 22a5e9b..8832a68 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 3a47542..b0daae1 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. */
--===============8152855242369201406==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5
--===============8152855242369201406==--