]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Make krb5_principal parameters const
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 16 Jun 2023 00:17:50 +0000 (12:17 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 25 Jun 2023 23:29:33 +0000 (23:29 +0000)
The â€˜const’ is entirely unnecessary in a function declaration, but we
add it just to be consistent.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/pac-glue.c
source4/kdc/pac-glue.h

index b22456641953c2bbbbffb8019c5e6d0d9c8b857a..d346878795f3707d6496015c2e78306272ab8a56 100644 (file)
@@ -2295,9 +2295,9 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
                                     struct ldb_context *samdb,
                                     uint32_t flags,
                                     struct samba_kdc_entry *client,
-                                    const krb5_principal server_principal,
+                                    const krb5_const_principal server_principal,
                                     const struct samba_kdc_entry *server,
-                                    const krb5_principal delegated_proxy_principal,
+                                    const krb5_const_principal delegated_proxy_principal,
                                     struct samba_kdc_entry *device,
                                     const krb5_const_pac device_pac,
                                     const krb5_const_pac old_pac,
index fa3e00331836a3b31f558d52bd1713672e8a27b1..e7623471ea534d7a0b6113a753b18ac5714fef92 100644 (file)
@@ -134,9 +134,9 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
                                     struct ldb_context *samdb,
                                     uint32_t flags,
                                     struct samba_kdc_entry *client,
-                                    krb5_principal server_principal,
+                                    const krb5_const_principal server_principal,
                                     const struct samba_kdc_entry *server,
-                                    krb5_principal delegated_proxy_principal,
+                                    const krb5_const_principal delegated_proxy_principal,
                                     struct samba_kdc_entry *device,
                                     krb5_const_pac device_pac,
                                     krb5_const_pac old_pac,