Complete support for --disable-afs-support

This commit is contained in:
Nicolas Williams
2016-08-10 19:51:11 -05:00
parent 3e6fb5bb41
commit 76c596ceb8
12 changed files with 41 additions and 16 deletions

View File

@@ -57,7 +57,9 @@ RCSID("$Id$");
#ifdef KRB5
#include <krb5.h>
#endif
#ifndef NO_AFS
#include <kafs.h>
#endif
#include <err.h>
#include <roken.h>
#include <getarg.h>
@@ -252,11 +254,13 @@ krb5_start_session(void)
}
esetenv("KRB5CCNAME", cc_name, 1);
#ifndef NO_AFS
/* convert creds? */
if(k_hasafs()) {
if (k_setpag() == 0)
krb5_afslog(context, ccache2, NULL, NULL);
}
#endif
krb5_cc_close(context, ccache2);
krb5_cc_destroy(context, ccache);