diff --git a/appl/ftp/ftp/cmdtab.c b/appl/ftp/ftp/cmdtab.c index 5dc96efa3..60284d47d 100644 --- a/appl/ftp/ftp/cmdtab.c +++ b/appl/ftp/ftp/cmdtab.c @@ -110,6 +110,8 @@ char kauthhelp[] = "get remote tokens"; char klisthelp[] = "show remote tickets"; char kdestroyhelp[] = "destroy remote tickets"; char krbtkfilehelp[] = "set filename of remote tickets"; +#endif +#if defined(KRB4) || defined(KRB5) char afsloghelp[] = "obtain remote AFS tokens"; #endif @@ -193,6 +195,8 @@ struct cmd cmdtab[] = { { "klist", klisthelp, 0, 1, 0, klist }, { "kdestroy", kdestroyhelp, 0, 1, 0, kdestroy }, { "krbtkfile", krbtkfilehelp, 0, 1, 0, krbtkfile }, +#endif +#if defined(KRB4) || defined(KRB5) { "afslog", afsloghelp, 0, 1, 0, afslog }, #endif diff --git a/appl/ftp/ftp/kauth.c b/appl/ftp/ftp/kauth.c index f8113762e..4fb0c94fc 100644 --- a/appl/ftp/ftp/kauth.c +++ b/appl/ftp/ftp/kauth.c @@ -32,9 +32,11 @@ */ #include "ftp_locl.h" -#include RCSID("$Id$"); +#ifdef KRB4 +#include + void kauth(int argc, char **argv) { @@ -180,6 +182,9 @@ krbtkfile(int argc, char **argv) ret = command("SITE KRBTKFILE %s", argv[1]); code = (ret == COMPLETE); } +#endif + +#if defined(KRB4) || defined(KRB5) void afslog(int argc, char **argv) @@ -196,3 +201,7 @@ afslog(int argc, char **argv) ret = command("SITE AFSLOG"); code = (ret == COMPLETE); } + +#else +int ftp_afslog_placeholder; +#endif