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
This commit is contained in:
Love Hörnquist Åstrand
2003-05-07 11:59:13 +00:00
parent 10d8573897
commit 5c8ab5c7cc
2 changed files with 14 additions and 1 deletions

View File

@@ -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

View File

@@ -32,9 +32,11 @@
*/
#include "ftp_locl.h"
#include <krb.h>
RCSID("$Id$");
#ifdef KRB4
#include <krb.h>
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