aboutsummaryrefslogtreecommitdiff
path: root/portable/krb5.h
diff options
context:
space:
mode:
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