From 92ff7f21ad0b167f8d742a9d7b5f93704a57619c Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 24 Apr 2008 02:02:49 +0000 Subject: Major coding style cleanup. Updated all shared code from my other projects. The configure option requesting AFS kaserver support (and thus building kasetkey) is now --with-kaserver instead of --with-afs. If KRB5_CONFIG was explicitly set in the environment, don't use a different krb5-config based on --with-krb4 or --with-krb5. If krb5-config isn't executable, don't use it. This allows one to force library probing by setting KRB5_CONFIG to point to a nonexistent file. Sanity-check the results of krb5-config before proceeding and error out in configure if they don't work. Stop setting Stanford-specific compile-time defaults for the wallet server and port. --- client/krb5.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'client/krb5.c') diff --git a/client/krb5.c b/client/krb5.c index 606cbb9..fd600da 100644 --- a/client/krb5.c +++ b/client/krb5.c @@ -1,17 +1,17 @@ -/* $Id$ -** -** Kerberos support functions for the wallet client. -** -** Currently, the only function here is one to obtain a ticket cache for a -** given principal and store it in memory for use by the rest of the wallet -** client. -** -** Written by Russ Allbery -** Copyright 2007, 2008 Board of Trustees, Leland Stanford Jr. University -*/ +/* $Id$ + * + * Kerberos support functions for the wallet client. + * + * Currently, the only function here is one to obtain a ticket cache for a + * given principal and store it in memory for use by the rest of the wallet + * client. + * + * Written by Russ Allbery + * Copyright 2007, 2008 Board of Trustees, Leland Stanford Jr. University + */ #include -#include +#include #include @@ -23,10 +23,10 @@ /* -** Given a Kerberos context and a principal name, authenticate as that user -** and store the TGT in a memory ticket cache for later use by remctl. Dies -** on failure. -*/ + * Given a Kerberos context and a principal name, authenticate as that user + * and store the TGT in a memory ticket cache for later use by remctl. Dies + * on failure. + */ void kinit(krb5_context ctx, const char *principal) { -- cgit v1.2.3