aboutsummaryrefslogtreecommitdiff
path: root/portable/krb5.h
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-09 19:43:27 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-09 19:43:27 -0800
commit99448954f4f9504796226bf05e76df22231d51ca (patch)
treef7ef1936bf8a329f8ae8476b49f845a06e2913c3 /portable/krb5.h
parent77d967fb11a4e63967ad1e80929b7096f9d58c05 (diff)
Add additional Kerberos portability needed for the test suite
Diffstat (limited to 'portable/krb5.h')
-rw-r--r--portable/krb5.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/portable/krb5.h b/portable/krb5.h
index 117f5ce..d9ef283 100644
--- a/portable/krb5.h
+++ b/portable/krb5.h
@@ -68,6 +68,15 @@ krb5_error_code krb5_get_init_creds_opt_alloc(krb5_context,
# define krb5_kt_free_entry(c, e) krb5_free_keytab_entry_contents((c), (e))
#endif
+/*
+ * Heimdal provides a nice function that just returns a const char *. On MIT,
+ * there's an accessor macro that returns the krb5_data pointer, wihch
+ * requires more work to get at the underlying char *.
+ */
+#ifndef HAVE_KRB5_PRINCIPAL_GET_REALM
+const char *krb5_principal_get_realm(krb5_context, krb5_const_principal);
+#endif
+
/* Undo default visibility change. */
#pragma GCC visibility pop