From 5c8ab5c7cca47d24609e4532b08b09e17afad773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 7 May 2003 11:59:13 +0000 Subject: [PATCH] include afslog in both the krb4 and krb5 case git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12233 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/cmdtab.c | 4 ++++ appl/ftp/ftp/kauth.c | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) 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