diff options
| author | Theodore Tso <tytso@mit.edu> | 1994-01-14 20:17:23 +0000 |
|---|---|---|
| committer | Theodore Tso <tytso@mit.edu> | 1994-01-14 20:17:23 +0000 |
| commit | 7b094b0e2b1d2bd46206a73d56d3700a8035be2c (patch) | |
| tree | a09fc066e5689e99cd82d7b3a939cd7093a75d09 /src | |
| parent | 867e405f26d2e941b6bd3cac4f18cc51a2dca9cb (diff) | |
| download | krb5-7b094b0e2b1d2bd46206a73d56d3700a8035be2c.tar.gz krb5-7b094b0e2b1d2bd46206a73d56d3700a8035be2c.tar.xz krb5-7b094b0e2b1d2bd46206a73d56d3700a8035be2c.zip | |
Conditionalize on KRB5_KRB4_COMPAT
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3337 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/krb/compat_recv.c | 14 |
1 files 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 |
