otherwise define ANAME_SZ, INST_SZ and REALM_SZ.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15271
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-03-08 Ezra Peisach <epeisach@mit.edu>
+
+ * t_kerb.c: Only include krb.h if krb4 support compiled in,
+ otherwise define ANAME_SZ, INST_SZ and REALM_SZ.
+
2003-03-06 Tom Yu <tlyu@mit.edu>
* preauth2.c (pa_sam_2): Add intermediate size_t variable to hold
*/
#include "krb5.h"
+#ifdef KRB5_KRB4_COMPAT
#include "kerberosIV/krb.h"
+#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
{
krb5_principal princ = 0;
krb5_error_code retval;
+#ifndef KRB5_KRB4_COMPAT
+#define ANAME_SZ 40
+#define INST_SZ 40
+#define REALM_SZ 40
+#endif
char aname[ANAME_SZ+1], inst[INST_SZ+1], realm[REALM_SZ+1];
aname[ANAME_SZ] = inst[INST_SZ] = realm[REALM_SZ] = 0;