From: Joseph Sutton Date: Fri, 16 Jun 2023 00:17:50 +0000 (+1200) Subject: s4:kdc: Make krb5_principal parameters const X-Git-Tag: talloc-2.4.1~209 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d2a6c69940cf28c2ea901cc0d8d8d317c32db986;p=thirdparty%2Fsamba.git s4:kdc: Make krb5_principal parameters const The ‘const’ is entirely unnecessary in a function declaration, but we add it just to be consistent. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index b2245664195..d346878795f 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -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, diff --git a/source4/kdc/pac-glue.h b/source4/kdc/pac-glue.h index fa3e0033183..e7623471ea5 100644 --- a/source4/kdc/pac-glue.h +++ b/source4/kdc/pac-glue.h @@ -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,