summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
Diffstat (limited to 'h')
-rw-r--r--h/internal.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/h/internal.h b/h/internal.h
index ac07099..3782a12 100644
--- a/h/internal.h
+++ b/h/internal.h
@@ -20,12 +20,15 @@
#endif
#ifndef HAVE_KRB4
-#define REALM_SZ MAXHOSTNAMELEN
-#define INST_SZ 0 /* no instances w/o Kerberos */
-#define ANAME_SZ 9 /* size of a username + null */
#define CLOCK_SKEW 300 /* max time to cache packet ids */
#endif
+#ifndef REALM_SZ /* XXX */
+#include <arpa/nameser.h>
+#define REALM_SZ NS_MAXDNAME
+#endif
+#define MAX_PRINCIPAL_SIZE 1024
+
#define SERVER_SVC_FALLBACK htons((unsigned short) 2103)
#define HM_SVC_FALLBACK htons((unsigned short) 2104)
#define HM_SRV_SVC_FALLBACK htons((unsigned short) 2105)
@@ -109,9 +112,9 @@ Code_t Z_SendFragmentedNotice __P((ZNotice_t *notice, int len,
Z_AuthProc cert_func,
Z_SendProc send_func));
Code_t Z_WaitForComplete __P((void));
-Code_t Z_WaitForNotice __P((ZNotice_t *notice,
- int (*pred) __P((ZNotice_t *, void *)), void *arg,
- int timeout));
+Code_t Z_WaitForNotice (ZNotice_t *notice,
+ int (*pred)(ZNotice_t *, void *), void *arg,
+ int timeout);
Code_t Z_NewFormatHeader __P((ZNotice_t *, char *, int, int *, Z_AuthProc));