From: Joseph Sutton Date: Tue, 1 Nov 2022 06:01:15 +0000 (+1300) Subject: s4-auth: Make PAC parameters const X-Git-Tag: talloc-2.4.0~579 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa62775eb4ff6e4cd50d8ef932a2c299509c39d9;p=thirdparty%2Fsamba.git s4-auth: Make PAC parameters const These functions have no need to modify the PACs passed in, and this change permits us to operate on const PACs in the KDC. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/auth/kerberos/kerberos_pac.c b/source4/auth/kerberos/kerberos_pac.c index ffb201ca3c9..880211bdea2 100644 --- a/source4/auth/kerberos/kerberos_pac.c +++ b/source4/auth/kerberos/kerberos_pac.c @@ -283,7 +283,7 @@ } static krb5_error_code kerberos_pac_buffer_present(krb5_context context, - const krb5_pac pac, + const krb5_const_pac pac, uint32_t type) { #ifdef SAMBA4_USES_HEIMDAL @@ -305,7 +305,7 @@ static krb5_error_code kerberos_pac_buffer_present(krb5_context context, } krb5_error_code kerberos_pac_to_user_info_dc(TALLOC_CTX *mem_ctx, - krb5_pac pac, + krb5_const_pac pac, krb5_context context, struct auth_user_info_dc **user_info_dc, struct PAC_SIGNATURE_DATA *pac_srv_sig,