lib/krb5_wrap: use const principal in smb_krb5_principal_get_realm().
authorGünther Deschner <gd@samba.org>
Thu, 8 May 2014 08:06:13 +0000 (10:06 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 8 Aug 2014 04:02:35 +0000 (06:02 +0200)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5_wrap/krb5_samba.c
lib/krb5_wrap/krb5_samba.h

index 76e7ab53a82066e16974a5c11373030e804d3b82..d5c0b37d282f346fa3deac39d90d729bfa03412a 100644 (file)
@@ -2300,7 +2300,7 @@ krb5_error_code smb_krb5_make_pac_checksum(TALLOC_CTX *mem_ctx,
  */
 
 char *smb_krb5_principal_get_realm(krb5_context context,
-                                  krb5_principal principal)
+                                  krb5_const_principal principal)
 {
 #ifdef HAVE_KRB5_PRINCIPAL_GET_REALM /* Heimdal */
        return discard_const_p(char, krb5_principal_get_realm(context, principal));
index 7835a3128fdc012be9caa4a5a0e6c57b0f0eb656..36b60feebe9d35494bf89d7c6af14ec6e2222fcc 100644 (file)
@@ -252,7 +252,7 @@ krb5_error_code smb_krb5_make_pac_checksum(TALLOC_CTX *mem_ctx,
                                           DATA_BLOB *sig_blob);
 
 char *smb_krb5_principal_get_realm(krb5_context context,
-                                  krb5_principal principal);
+                                  krb5_const_principal principal);
 
 char *kerberos_get_principal_from_service_hostname(TALLOC_CTX *mem_ctx,
                                                   const char *service,