Fri Aug 7 00:56:30 1998 Matthew D Hancher <mdh@mit.edu>
+ * ftpcmd.y: Replace old KERBEROS #ifdef's with KRB5_KRB4_COMPAT
+ so that K4 compatibility support actually gets compiled in.
+
* ftpd.c: (pass): Make daemon not lose for homedirs on
root-squashing filesystems.
(auth_data): Fix that godawful "error: No error" message
#endif
static int kerror; /* XXX needed for all auth types */
-#ifdef KERBEROS
+#ifdef KRB5_KRB4_COMPAT
extern struct sockaddr_in his_addr, ctrl_addr;
#include <krb.h>
extern AUTH_DAT kdata;
extern Key_schedule schedule;
extern MSG_DAT msg_data;
-#endif /* KERBEROS */
+#endif /* KRB5_KRB4_COMPAT */
#ifdef GSSAPI
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_generic.h>
}
if (debug) syslog(LOG_DEBUG, "getline got %d from %s <%s>\n",
len, cs, mic?"MIC":"ENC");
-#ifdef KERBEROS
+#ifdef KRB5_KRB4_COMPAT
if (strcmp(auth_type, "KERBEROS_V4") == 0) {
if ((kerror = mic ?
krb_rd_safe((unsigned char *)out, len, &kdata.session,
(void) memcpy(s, msg_data.app_data, msg_data.app_length);
(void) strcpy(s+msg_data.app_length, "\r\n");
}
-#endif /* KERBEROS */
+#endif /* KRB5_KRB4_COMPAT */
#ifdef GSSAPI
/* we know this is a MIC or ENC already, and out/len already has the bits */
if (strcmp(auth_type, "GSSAPI") == 0) {
#endif /* GSSAPI */
/* Other auth types go here ... */
}
-#if defined KERBEROS || defined GSSAPI /* or other auth types */
+#if defined KRB5_KRB4_COMPAT || defined GSSAPI /* or other auth types */
else { /* !auth_type */
if ( (!(strncmp(s, "ENC", 3))) || (!(strncmp(s, "MIC", 3)))
#ifndef NOCONFIDENTIAL
return(s);
}
}
-#endif /* KERBEROS */
+#endif /* KRB5_KRB4_COMPAT || GSSAPI */
if (debug) {
if (!strncmp(s, "PASS ", 5) && !guest)