Make compile w/o krb4.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4684 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1998-03-26 23:46:03 +00:00
parent 50222176ef
commit 6d51cd1dfc
6 changed files with 67 additions and 9 deletions

View File

@@ -493,6 +493,7 @@ cmd
| SITE SP KAUTH check_login SP STRING CRLF
{
#ifdef KRB4
char *p;
if(guest)
@@ -509,35 +510,55 @@ cmd
}
if($6 != NULL)
free($6);
#else
reply(500, "Command not implemented.");
#endif
}
| SITE SP KLIST check_login CRLF
{
#ifdef KRB4
if($4)
klist();
#else
reply(500, "Command not implemented.");
#endif
}
| SITE SP KDESTROY check_login CRLF
{
#ifdef KRB4
if($4)
kdestroy();
#else
reply(500, "Command not implemented.");
#endif
}
| SITE SP KRBTKFILE check_login SP STRING CRLF
{
#ifdef KRB4
if(guest)
reply(500, "Can't be done as guest.");
else if($4 && $6)
krbtkfile($6);
if($6)
free($6);
#else
reply(500, "Command not implemented.");
#endif
}
| SITE SP AFSLOG check_login CRLF
{
#ifdef KRB4
if(guest)
reply(500, "Can't be done as guest.");
else if($4)
afslog(NULL);
#else
reply(500, "Command not implemented.");
#endif
}
| SITE SP AFSLOG check_login SP STRING CRLF
{
#ifdef KRB4
if(guest)
reply(500, "Can't be done as guest.");
else if($4){
@@ -545,6 +566,9 @@ cmd
}
if($6)
free($6);
#else
reply(500, "Command not implemented.");
#endif
}
| SITE SP FIND check_login SP STRING CRLF
{