]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:krb5_wrap: Add const to parameters for smb_krb5_create_key_from_string()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 9 May 2022 01:55:07 +0000 (13:55 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 14 Jun 2022 07:21:29 +0000 (07:21 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/krb5_wrap/krb5_samba.c
lib/krb5_wrap/krb5_samba.h

index 2351d172779e51175d5936615f016c000686bc27..57ffdc727805813a1a4fe7aa5017ee89116d7abe 100644 (file)
@@ -291,8 +291,8 @@ krb5_error_code smb_krb5_mk_error(krb5_context context,
 */
 int smb_krb5_create_key_from_string(krb5_context context,
                                    krb5_const_principal host_princ,
-                                   krb5_data *salt,
-                                   krb5_data *password,
+                                   const krb5_data *salt,
+                                   const krb5_data *password,
                                    krb5_enctype enctype,
                                    krb5_keyblock *key)
 {
index 653cd561406ea4c03fd95c65c37723033c8c4780..942f787d12a40269c74ab164b527e762a7bfd59e 100644 (file)
@@ -361,8 +361,8 @@ int smb_krb5_salt_principal2data(krb5_context context,
 
 int smb_krb5_create_key_from_string(krb5_context context,
                                    krb5_const_principal host_princ,
-                                   krb5_data *salt,
-                                   krb5_data *password,
+                                   const krb5_data *salt,
+                                   const krb5_data *password,
                                    krb5_enctype enctype,
                                    krb5_keyblock *key);