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:
@@ -110,6 +110,8 @@ char kauthhelp[] = "get remote tokens";
|
|||||||
char klisthelp[] = "show remote tickets";
|
char klisthelp[] = "show remote tickets";
|
||||||
char kdestroyhelp[] = "destroy remote tickets";
|
char kdestroyhelp[] = "destroy remote tickets";
|
||||||
char krbtkfilehelp[] = "set filename of remote tickets";
|
char krbtkfilehelp[] = "set filename of remote tickets";
|
||||||
|
#endif
|
||||||
|
#if defined(KRB4) || defined(KRB5)
|
||||||
char afsloghelp[] = "obtain remote AFS tokens";
|
char afsloghelp[] = "obtain remote AFS tokens";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -193,6 +195,8 @@ struct cmd cmdtab[] = {
|
|||||||
{ "klist", klisthelp, 0, 1, 0, klist },
|
{ "klist", klisthelp, 0, 1, 0, klist },
|
||||||
{ "kdestroy", kdestroyhelp, 0, 1, 0, kdestroy },
|
{ "kdestroy", kdestroyhelp, 0, 1, 0, kdestroy },
|
||||||
{ "krbtkfile", krbtkfilehelp, 0, 1, 0, krbtkfile },
|
{ "krbtkfile", krbtkfilehelp, 0, 1, 0, krbtkfile },
|
||||||
|
#endif
|
||||||
|
#if defined(KRB4) || defined(KRB5)
|
||||||
{ "afslog", afsloghelp, 0, 1, 0, afslog },
|
{ "afslog", afsloghelp, 0, 1, 0, afslog },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -32,9 +32,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ftp_locl.h"
|
#include "ftp_locl.h"
|
||||||
#include <krb.h>
|
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
|
#ifdef KRB4
|
||||||
|
#include <krb.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
kauth(int argc, char **argv)
|
kauth(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@@ -180,6 +182,9 @@ krbtkfile(int argc, char **argv)
|
|||||||
ret = command("SITE KRBTKFILE %s", argv[1]);
|
ret = command("SITE KRBTKFILE %s", argv[1]);
|
||||||
code = (ret == COMPLETE);
|
code = (ret == COMPLETE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(KRB4) || defined(KRB5)
|
||||||
|
|
||||||
void
|
void
|
||||||
afslog(int argc, char **argv)
|
afslog(int argc, char **argv)
|
||||||
@@ -196,3 +201,7 @@ afslog(int argc, char **argv)
|
|||||||
ret = command("SITE AFSLOG");
|
ret = command("SITE AFSLOG");
|
||||||
code = (ret == COMPLETE);
|
code = (ret == COMPLETE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
int ftp_afslog_placeholder;
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user