summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-05-08 10:06:13 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-08-08 06:02:35 +0200
commit1a58585a9b912a6b70e37a6b2391d3ca7ddda34f (patch)
treecd0ea376502bb4b8ba59cb817378a4576c4f73fd /lib
parenta6145a2822d000e02a35797bf9749422be1d4806 (diff)
downloadsamba-1a58585a9b912a6b70e37a6b2391d3ca7ddda34f.tar.gz
lib/krb5_wrap: use const principal in smb_krb5_principal_get_realm().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/krb5_wrap/krb5_samba.c2
-rw-r--r--lib/krb5_wrap/krb5_samba.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c
index 76e7ab53a82..d5c0b37d282 100644
--- a/lib/krb5_wrap/krb5_samba.c
+++ b/lib/krb5_wrap/krb5_samba.c
@@ -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));
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h
index 7835a3128fd..36b60feebe9 100644
--- a/lib/krb5_wrap/krb5_samba.h
+++ b/lib/krb5_wrap/krb5_samba.h
@@ -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,