diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2013-01-03 22:24:39 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2013-01-03 22:24:39 +0000 |
commit | 8ac5ae563b4dfe5250998253a340d97a9818ca19 (patch) | |
tree | 9b1863743ae2d11965b72c48577fcd8322c82ed0 /usr.sbin/gssd/gssd.c | |
parent | 6f1b440f45dc9e853a1d29bcccc2613d8661fa48 (diff) | |
download | src-8ac5ae563b4dfe5250998253a340d97a9818ca19.tar.gz src-8ac5ae563b4dfe5250998253a340d97a9818ca19.zip |
Fix r244604 so that it builds when MK_KERBEROS_SUPPORT == "no".
Reported by: bf
Tested by: bf
Reviewed by: gcooper
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=245014
Diffstat (limited to 'usr.sbin/gssd/gssd.c')
-rw-r--r-- | usr.sbin/gssd/gssd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/gssd/gssd.c b/usr.sbin/gssd/gssd.c index 78ca859dab73..977794366c00 100644 --- a/usr.sbin/gssd/gssd.c +++ b/usr.sbin/gssd/gssd.c @@ -37,7 +37,9 @@ __FBSDID("$FreeBSD$"); #include <ctype.h> #include <dirent.h> #include <err.h> +#ifndef WITHOUT_KERBEROS #include <krb5.h> +#endif #include <pwd.h> #include <stdio.h> #include <stdlib.h> @@ -102,12 +104,17 @@ main(int argc, char **argv) debug_level++; break; case 's': +#ifndef WITHOUT_KERBEROS /* * Set the directory search list. This enables use of * find_ccache_file() to search the directories for a * suitable credentials cache file. */ strlcpy(ccfile_dirlist, optarg, sizeof(ccfile_dirlist)); +#else + errx(1, "This option not available when built" + " without MK_KERBEROS\n"); +#endif break; case 'c': /* @@ -814,6 +821,7 @@ static int is_a_valid_tgt_cache(const char *filepath, uid_t uid, int *retrating, time_t *retexptime) { +#ifndef WITHOUT_KERBEROS krb5_context context; krb5_principal princ; krb5_ccache ccache; @@ -913,5 +921,8 @@ is_a_valid_tgt_cache(const char *filepath, uid_t uid, int *retrating, *retexptime = exptime; } return (ret); +#else /* WITHOUT_KERBEROS */ + return (0); +#endif /* !WITHOUT_KERBEROS */ } |