From c9ac1a0f95653dbbcb12fa6d2a06de7572d53cdd Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 9 Mar 2003 00:22:12 +0000 Subject: [PATCH] * t_kerb.c: Only include krb.h if krb4 support compiled in, 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 | 5 +++++ src/lib/krb5/krb/t_kerb.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 852969dad..c936ca4fd 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2003-03-08 Ezra Peisach + + * 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 * preauth2.c (pa_sam_2): Add intermediate size_t variable to hold diff --git a/src/lib/krb5/krb/t_kerb.c b/src/lib/krb5/krb/t_kerb.c index c63cd1452..72c0a425b 100644 --- a/src/lib/krb5/krb/t_kerb.c +++ b/src/lib/krb5/krb/t_kerb.c @@ -4,7 +4,9 @@ */ #include "krb5.h" +#ifdef KRB5_KRB4_COMPAT #include "kerberosIV/krb.h" +#endif #include #include #include @@ -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; -- 2.26.2