Conditionalize on KRB5_KRB4_COMPAT
authorTheodore Tso <tytso@mit.edu>
Fri, 14 Jan 1994 20:17:23 +0000 (20:17 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 14 Jan 1994 20:17:23 +0000 (20:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3337 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/compat_recv.c

index a6c6bc8cf4bca8c02fce129e23f773bcca314de6..d76822e0b355c61b19d97a09a8dbeede4c4a9235 100644 (file)
@@ -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