]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-auth: Make PAC parameters const
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 1 Nov 2022 06:01:15 +0000 (19:01 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Nov 2022 02:39:37 +0000 (02:39 +0000)
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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/kerberos/kerberos_pac.c

index ffb201ca3c98e9989f810b587ef55c3de80ce6bd..880211bdea2addc77c6d61580b86b1371582147e 100644 (file)
 }
 
 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,