summaryrefslogtreecommitdiff
path: root/lib/krb5_wrap
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-04-30 10:46:20 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-08-08 06:02:34 +0200
commit5c663685ebbb14cc8eca49e9e9554c2dae2e9764 (patch)
tree08114a61e297792c302ca6f84bcfbfd80a5e8b56 /lib/krb5_wrap
parentfb2a8b34c17a68da6f0712d83b55084efaa76e52 (diff)
downloadsamba-5c663685ebbb14cc8eca49e9e9554c2dae2e9764.tar.gz
lib/krb5_wrap: move krb5_princ_size replacement code to lib/krb5_wrap/krb5_samba.c.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r--lib/krb5_wrap/krb5_samba.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h
index ee06f556e3d..f5a2daa0776 100644
--- a/lib/krb5_wrap/krb5_samba.h
+++ b/lib/krb5_wrap/krb5_samba.h
@@ -308,6 +308,14 @@ int smb_krb5_create_key_from_string(krb5_context context,
krb5_boolean smb_krb5_get_allowed_weak_crypto(krb5_context context);
+#ifndef krb5_princ_size
+#if defined(HAVE_KRB5_PRINCIPAL_GET_NUM_COMP)
+#define krb5_princ_size krb5_principal_get_num_comp
+#else
+#error krb5_princ_size unavailable
+#endif
+#endif
+
#endif /* HAVE_KRB5 */
int cli_krb5_get_ticket(TALLOC_CTX *mem_ctx,