* t_kerb.c: Only include krb.h if krb4 support compiled in,
authorEzra Peisach <epeisach@mit.edu>
Sun, 9 Mar 2003 00:22:12 +0000 (00:22 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 9 Mar 2003 00:22:12 +0000 (00:22 +0000)
otherwise define ANAME_SZ, INST_SZ and REALM_SZ.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15271 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/t_kerb.c

index 852969dad4bfdcc21f1dd6e934af57e6cdd0f9a3..c936ca4fd6504acdec007584f52a704e6282c0fe 100644 (file)
@@ -1,3 +1,8 @@
+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
index c63cd14522f6ff25ba8baee932e9d7d6945809b9..72c0a425b33d3a8a58c32404b194c3b7d8a534e5 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include "krb5.h"
+#ifdef KRB5_KRB4_COMPAT
 #include "kerberosIV/krb.h"
+#endif
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -65,6 +67,11 @@ void test_524_conv_principal(krb5_context ctx, char *name)
 {
     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;