From 7b094b0e2b1d2bd46206a73d56d3700a8035be2c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 14 Jan 1994 20:17:23 +0000 Subject: [PATCH] Conditionalize on KRB5_KRB4_COMPAT git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3337 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/compat_recv.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/lib/krb5/krb/compat_recv.c b/src/lib/krb5/krb/compat_recv.c index a6c6bc8cf..d76822e0b 100644 --- a/src/lib/krb5/krb/compat_recv.c +++ b/src/lib/krb5/krb/compat_recv.c @@ -111,6 +111,7 @@ krb5_compat_recvauth(/* IN */ if ((retval = krb5_net_read(fd, vers.vers, 4)) != 4) return((retval < 0) ? errno : ECONNABORTED); +#ifdef KRB5_KRB4_COMPAT if (!strncmp(vers.vers, KRB_V4_SENDAUTH_VERS, 4)) { /* * We must be talking to a V4 sendauth; read in the @@ -162,6 +163,7 @@ krb5_compat_recvauth(/* IN */ return KRB5_SENDAUTH_BADRESPONSE; } } +#endif /* * Assume that we're talking to a V5 recvauth; read in the @@ -208,6 +210,7 @@ krb5_compat_recvauth(/* IN */ #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif /* max */ +#ifdef KRB5_KRB4_COMPAT static int krb_v4_recvauth(options, fd, ticket, service, instance, faddr, laddr, kdata, filename, schedule, version) @@ -311,13 +314,4 @@ mutual_fail: } return(rem); } - - - - - - - - - - +#endif -- 2.26.2