summaryrefslogtreecommitdiffstats
path: root/src/kdc/kdc_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdc/kdc_util.h')
-rw-r--r--src/kdc/kdc_util.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h
new file mode 100644
index 000000000..8bfb8fedc
--- /dev/null
+++ b/src/kdc/kdc_util.h
@@ -0,0 +1,40 @@
+/*
+ * $Source$
+ * $Author$
+ * $Id$
+ *
+ * Copyright 1990 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/mit-copyright.h>.
+ *
+ * Declarations for policy.c
+ */
+
+#include <krb5/copyright.h>
+
+#ifndef __KRB5_KDC_UTIL__
+#define __KRB5_KDC_UTIL__
+
+krb5_error_code check_hot_list PROTOTYPE((krb5_ticket *));
+krb5_boolean realm_compare PROTOTYPE((krb5_data *, krb5_principal));
+krb5_data * realm_of_tgt PROTOTYPE((krb5_ticket *));
+krb5_error_code compress_transited PROTOTYPE((krb5_data,
+ krb5_principal,
+ krb5_data *));
+krb5_error_code concat_authorization_data PROTOTYPE((krb5_authdata **,
+ krb5_authdata **,
+ krb5_authdata ***));
+krb5_error_code fetch_last_req_info PROTOTYPE((krb5_db_entry *,
+ krb5_last_req_entry ***));
+
+#define isset(flagfield, flag) (flagfield & (flag))
+#define set(flagfield, flag) (flagfield |= (flag))
+#define clear(flagfield, flag) (flagfield &= ~(flag))
+
+#ifndef min
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#define max(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
+#endif /* __KRB5_KDC_UTIL__ */