From 03210b333367d8158ca4a26ebe5d94f0927c19a5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 28 Jan 2009 00:30:06 +0000 Subject: [PATCH] whitespace git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21813 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/do_tgs_req.c | 57 +++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index afc6367eb..517befb41 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -1,3 +1,4 @@ +/* -*- mode: c; indent-tabs-mode: nil -*- */ /* * kdc/do_tgs_req.c * @@ -71,15 +72,17 @@ #include "extern.h" #include "adm_proto.h" -static void find_alternate_tgs (krb5_kdc_req *, krb5_db_entry *, - krb5_boolean *, int *); +static void +find_alternate_tgs (krb5_kdc_req *, krb5_db_entry *, + krb5_boolean *, int *); -static krb5_error_code prepare_error_tgs (krb5_kdc_req *, krb5_ticket *, - int, krb5_principal, - krb5_data **, const char *); +static krb5_error_code +prepare_error_tgs (krb5_kdc_req *, krb5_ticket *, + int, krb5_principal, + krb5_data **, const char *); static krb5_int32 -is_substr ( char *, krb5_data *); +is_substr (char *, krb5_data *); static krb5_int32 prep_reprocess_req(krb5_kdc_req *, krb5_principal *); @@ -87,7 +90,7 @@ prep_reprocess_req(krb5_kdc_req *, krb5_principal *); /*ARGSUSED*/ krb5_error_code process_tgs_req(krb5_data *pkt, const krb5_fulladdr *from, -krb5_data **response) + krb5_data **response) { krb5_keyblock * subkey = 0; krb5_kdc_req *request = 0; @@ -737,23 +740,23 @@ tgt_again: setflag (enc_tkt_reply.flags, TKT_FLG_TRANSIT_POLICY_CHECKED); } else if (errcode == KRB5KRB_AP_ERR_ILL_CR_TKT) krb5_klog_syslog (LOG_INFO, - "bad realm transit path from '%s' to '%s' " - "via '%.*s%s'", - cname ? cname : "", - sname ? sname : "", - tlen, - enc_tkt_reply.transited.tr_contents.data, - tdots); + "bad realm transit path from '%s' to '%s' " + "via '%.*s%s'", + cname ? cname : "", + sname ? sname : "", + tlen, + enc_tkt_reply.transited.tr_contents.data, + tdots); else { emsg = krb5_get_error_message(kdc_context, errcode); krb5_klog_syslog (LOG_ERR, - "unexpected error checking transit from " - "'%s' to '%s' via '%.*s%s': %s", - cname ? cname : "", - sname ? sname : "", - tlen, - enc_tkt_reply.transited.tr_contents.data, - tdots, emsg); + "unexpected error checking transit from " + "'%s' to '%s' via '%.*s%s': %s", + cname ? cname : "", + sname ? sname : "", + tlen, + enc_tkt_reply.transited.tr_contents.data, + tdots, emsg); krb5_free_error_message(kdc_context, emsg); emsg = NULL; } @@ -924,8 +927,8 @@ cleanup: static krb5_error_code prepare_error_tgs (krb5_kdc_req *request, krb5_ticket *ticket, int error, - krb5_principal canon_server, - krb5_data **response, const char *status) + krb5_principal canon_server, + krb5_data **response, const char *status) { krb5_error errpkt; krb5_error_code retval; @@ -971,7 +974,7 @@ prepare_error_tgs (krb5_kdc_req *request, krb5_ticket *ticket, int error, */ static void find_alternate_tgs(krb5_kdc_req *request, krb5_db_entry *server, - krb5_boolean *more, int *nprincs) + krb5_boolean *more, int *nprincs) { krb5_error_code retval; krb5_principal *plist, *pl2; @@ -1148,9 +1151,9 @@ prep_reprocess_req(krb5_kdc_req *request, krb5_principal *krbtgt_princ) * and use it as a principal in this req. */ retval = krb5_build_principal(kdc_context, krbtgt_princ, - (*request->server).realm.length, - (*request->server).realm.data, - "krbtgt", realms[0], (char *)0); + (*request->server).realm.length, + (*request->server).realm.data, + "krbtgt", realms[0], (char *)0); for (cpp = realms; *cpp; cpp++) free(*cpp); -- 2.26.2