lib/krb5_wrap: use krb5_const_principal in smb_krb5_get_pw_salt().
authorGünther Deschner <gd@samba.org>
Thu, 26 Mar 2015 10:31:34 +0000 (11:31 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 27 Mar 2015 00:26:16 +0000 (01:26 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/krb5_wrap/krb5_samba.c
lib/krb5_wrap/krb5_samba.h

index 471654e2b8be165f14f894ea8507ea8ffa5ce143..6d71f2223dbe0fbd50423c900768b3aa082eaea4 100644 (file)
@@ -223,7 +223,7 @@ int smb_krb5_create_key_from_string(krb5_context context,
 */
 
 int smb_krb5_get_pw_salt(krb5_context context,
-                        krb5_principal host_princ,
+                        krb5_const_principal host_princ,
                         krb5_data *psalt)
 #if defined(HAVE_KRB5_GET_PW_SALT)
 /* Heimdal */
index 9eae8f056568725db4299e148ab2fd079476e03f..7ff3a86997321bf3a7ed003d25f5def145688028 100644 (file)
@@ -309,7 +309,7 @@ krb5_error_code ms_suptypes_to_ietf_enctypes(TALLOC_CTX *mem_ctx,
                                             uint32_t enctype_bitmap,
                                             krb5_enctype **enctypes);
 int smb_krb5_get_pw_salt(krb5_context context,
-                        krb5_principal host_princ,
+                        krb5_const_principal host_princ,
                         krb5_data *psalt);
 
 int smb_krb5_create_key_from_string(krb5_context context,