From: John Kohl Date: Thu, 20 Dec 1990 09:33:33 +0000 (+0000) Subject: conditionalize v4 support X-Git-Tag: krb5-1.0-alpha3~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3e75e5f9610a62c46957abbb8f8458cc3ad0e76a;p=krb5.git conditionalize v4 support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1577 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/Imakefile b/src/kdc/Imakefile index 047c96e75..ff0722f97 100644 --- a/src/kdc/Imakefile +++ b/src/kdc/Imakefile @@ -7,7 +7,14 @@ # For copying and distribution information, please see the file # . # -DEFINES = -DBACKWARD_COMPAT + +#ifdef Krb4KDCCompat +KRB4DEF = -DKRB4 +#else +KRB4DEF = +#endif +DEFINES = -DBACKWARD_COMPAT $(KRB4DEF) + INCLUDES = $(KRB4INCLUDES) SRCS= \ kdc5_err.c \ diff --git a/src/kdc/dispatch.c b/src/kdc/dispatch.c index e2048b57b..463504b14 100644 --- a/src/kdc/dispatch.c +++ b/src/kdc/dispatch.c @@ -45,8 +45,11 @@ krb5_data **response; retval = process_as_req(as_req, from, response); krb5_free_kdc_req(as_req); } - } else if (pkt->data[0] == 4) /* XXX old version */ + } +#ifdef KRB4 + else if (pkt->data[0] == 4) /* XXX old version */ return(process_v4(pkt, from, response)); +#endif else retval = KRB5KRB_AP_ERR_MSG_TYPE; return retval; diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index 8955092e1..62a527819 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -9,11 +9,13 @@ * . */ +#ifdef KRB4 #ifndef lint -static char *rcsid_kerberos_c = -"$Header$"; +static char rcsid_kerberos_c[] = +"$Id$"; #endif /* lint */ + #ifdef __STDC__ #include #else @@ -1150,3 +1152,4 @@ hang() } } #endif /* BACKWARD_COMPAT */ +#endif /* KRB4 */