From: Ken Raeburn Date: Sun, 25 Mar 2007 23:09:27 +0000 (+0000) Subject: whitespace (mostly wrapping long lines produced by protoize) X-Git-Tag: krb5-1.7-alpha1~1224 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=301ef7bd4d16f0c80b716092c62d5fb76e8c35d3;p=krb5.git whitespace (mostly wrapping long lines produced by protoize) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19278 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/mk_cred.c b/src/lib/krb5/krb/mk_cred.c index 04248c08d..cb4464717 100644 --- a/src/lib/krb5/krb/mk_cred.c +++ b/src/lib/krb5/krb/mk_cred.c @@ -21,7 +21,8 @@ * encrypt the enc_part of krb5_cred */ static krb5_error_code -encrypt_credencpart(krb5_context context, krb5_cred_enc_part *pcredpart, krb5_keyblock *pkeyblock, krb5_enc_data *pencdata) +encrypt_credencpart(krb5_context context, krb5_cred_enc_part *pcredpart, + krb5_keyblock *pkeyblock, krb5_enc_data *pencdata) { krb5_error_code retval; krb5_data * scratch; @@ -62,7 +63,11 @@ encrypt_credencpart(krb5_context context, krb5_cred_enc_part *pcredpart, krb5_ke /*----------------------- krb5_mk_ncred_basic -----------------------*/ static krb5_error_code -krb5_mk_ncred_basic(krb5_context context, krb5_creds **ppcreds, krb5_int32 nppcreds, krb5_keyblock *keyblock, krb5_replay_data *replaydata, krb5_address *local_addr, krb5_address *remote_addr, krb5_cred *pcred) +krb5_mk_ncred_basic(krb5_context context, + krb5_creds **ppcreds, krb5_int32 nppcreds, + krb5_keyblock *keyblock, krb5_replay_data *replaydata, + krb5_address *local_addr, krb5_address *remote_addr, + krb5_cred *pcred) { krb5_cred_enc_part credenc; krb5_error_code retval; @@ -145,7 +150,9 @@ cleanup: * outputs an encoded KRB_CRED message suitable for krb5_rd_cred */ krb5_error_code KRB5_CALLCONV -krb5_mk_ncred(krb5_context context, krb5_auth_context auth_context, krb5_creds **ppcreds, krb5_data **ppdata, krb5_replay_data *outdata) +krb5_mk_ncred(krb5_context context, krb5_auth_context auth_context, + krb5_creds **ppcreds, krb5_data **ppdata, + krb5_replay_data *outdata) { krb5_address * premote_fulladdr = NULL; krb5_address * plocal_fulladdr = NULL; @@ -286,7 +293,9 @@ error: * A convenience function that calls krb5_mk_ncred. */ krb5_error_code KRB5_CALLCONV -krb5_mk_1cred(krb5_context context, krb5_auth_context auth_context, krb5_creds *pcreds, krb5_data **ppdata, krb5_replay_data *outdata) +krb5_mk_1cred(krb5_context context, krb5_auth_context auth_context, + krb5_creds *pcreds, krb5_data **ppdata, + krb5_replay_data *outdata) { krb5_error_code retval; krb5_creds **ppcreds; diff --git a/src/lib/krb5/krb/mk_error.c b/src/lib/krb5/krb/mk_error.c index 0444a5d17..819d29dde 100644 --- a/src/lib/krb5/krb/mk_error.c +++ b/src/lib/krb5/krb/mk_error.c @@ -38,7 +38,8 @@ returns system errors */ krb5_error_code KRB5_CALLCONV -krb5_mk_error(krb5_context context, const krb5_error *dec_err, krb5_data *enc_err) +krb5_mk_error(krb5_context context, const krb5_error *dec_err, + krb5_data *enc_err) { krb5_error_code retval; krb5_data *new_enc_err; diff --git a/src/lib/krb5/krb/mk_priv.c b/src/lib/krb5/krb/mk_priv.c index efe254ac0..08cbee969 100644 --- a/src/lib/krb5/krb/mk_priv.c +++ b/src/lib/krb5/krb/mk_priv.c @@ -32,7 +32,10 @@ #include "auth_con.h" static krb5_error_code -krb5_mk_priv_basic(krb5_context context, const krb5_data *userdata, const krb5_keyblock *keyblock, krb5_replay_data *replaydata, krb5_address *local_addr, krb5_address *remote_addr, krb5_pointer i_vector, krb5_data *outbuf) +krb5_mk_priv_basic(krb5_context context, const krb5_data *userdata, + const krb5_keyblock *keyblock, krb5_replay_data *replaydata, + krb5_address *local_addr, krb5_address *remote_addr, + krb5_pointer i_vector, krb5_data *outbuf) { krb5_error_code retval; krb5_priv privmsg; diff --git a/src/lib/krb5/krb/mk_rep.c b/src/lib/krb5/krb/mk_rep.c index 393f634bb..b512f0975 100644 --- a/src/lib/krb5/krb/mk_rep.c +++ b/src/lib/krb5/krb/mk_rep.c @@ -40,7 +40,8 @@ */ krb5_error_code KRB5_CALLCONV -krb5_mk_rep(krb5_context context, krb5_auth_context auth_context, krb5_data *outbuf) +krb5_mk_rep(krb5_context context, krb5_auth_context auth_context, + krb5_data *outbuf) { krb5_error_code retval; krb5_ap_rep_enc_part repl; diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c index e5cb43a52..6d40e5de7 100644 --- a/src/lib/krb5/krb/mk_req_ext.c +++ b/src/lib/krb5/krb/mk_req_ext.c @@ -258,7 +258,10 @@ cleanup: } static krb5_error_code -krb5_generate_authenticator(krb5_context context, krb5_authenticator *authent, krb5_principal client, krb5_checksum *cksum, krb5_keyblock *key, krb5_ui_4 seq_number, krb5_authdata **authorization) +krb5_generate_authenticator(krb5_context context, krb5_authenticator *authent, + krb5_principal client, krb5_checksum *cksum, + krb5_keyblock *key, krb5_ui_4 seq_number, + krb5_authdata **authorization) { krb5_error_code retval; diff --git a/src/lib/krb5/krb/mk_safe.c b/src/lib/krb5/krb/mk_safe.c index eefcab7cd..0517f4275 100644 --- a/src/lib/krb5/krb/mk_safe.c +++ b/src/lib/krb5/krb/mk_safe.c @@ -110,7 +110,9 @@ cleanup_checksum: } krb5_error_code KRB5_CALLCONV -krb5_mk_safe(krb5_context context, krb5_auth_context auth_context, const krb5_data *userdata, krb5_data *outbuf, krb5_replay_data *outdata) +krb5_mk_safe(krb5_context context, krb5_auth_context auth_context, + const krb5_data *userdata, krb5_data *outbuf, + krb5_replay_data *outdata) { krb5_error_code retval; krb5_keyblock * keyblock; diff --git a/src/lib/krb5/krb/rd_cred.c b/src/lib/krb5/krb/rd_cred.c index a29eb0522..965ed9a81 100644 --- a/src/lib/krb5/krb/rd_cred.c +++ b/src/lib/krb5/krb/rd_cred.c @@ -12,7 +12,8 @@ * decrypt the enc_part of a krb5_cred */ static krb5_error_code -decrypt_credencdata(krb5_context context, krb5_cred *pcred, krb5_keyblock *pkeyblock, krb5_cred_enc_part *pcredenc) +decrypt_credencdata(krb5_context context, krb5_cred *pcred, + krb5_keyblock *pkeyblock, krb5_cred_enc_part *pcredenc) { krb5_cred_enc_part * ppart = NULL; krb5_error_code retval; @@ -51,7 +52,9 @@ cleanup: /*----------------------- krb5_rd_cred_basic -----------------------*/ static krb5_error_code -krb5_rd_cred_basic(krb5_context context, krb5_data *pcreddata, krb5_keyblock *pkeyblock, krb5_replay_data *replaydata, krb5_creds ***pppcreds) +krb5_rd_cred_basic(krb5_context context, krb5_data *pcreddata, + krb5_keyblock *pkeyblock, krb5_replay_data *replaydata, + krb5_creds ***pppcreds) { krb5_error_code retval; krb5_cred * pcred; @@ -162,7 +165,9 @@ cleanup_cred: * outputs the nonce and an array of the forwarded credentials. */ krb5_error_code KRB5_CALLCONV -krb5_rd_cred(krb5_context context, krb5_auth_context auth_context, krb5_data *pcreddata, krb5_creds ***pppcreds, krb5_replay_data *outdata) +krb5_rd_cred(krb5_context context, krb5_auth_context auth_context, + krb5_data *pcreddata, krb5_creds ***pppcreds, + krb5_replay_data *outdata) { krb5_error_code retval; krb5_keyblock * keyblock; @@ -183,19 +188,20 @@ krb5_rd_cred(krb5_context context, krb5_auth_context auth_context, krb5_data *pc return KRB5_RC_REQUIRED; -/* If decrypting with the first keyblock we try fails, perhaps the - * credentials are stored in the session key so try decrypting with - * that. -*/ + /* + * If decrypting with the first keyblock we try fails, perhaps the + * credentials are stored in the session key so try decrypting with + * that. + */ if ((retval = krb5_rd_cred_basic(context, pcreddata, keyblock, &replaydata, pppcreds))) { if ((retval = krb5_rd_cred_basic(context, pcreddata, auth_context->keyblock, &replaydata, pppcreds))) { return retval; + } } - } - + if (auth_context->auth_context_flags & KRB5_AUTH_CONTEXT_DO_TIME) { krb5_donot_replay replay; krb5_timestamp currenttime; diff --git a/src/lib/krb5/krb/rd_error.c b/src/lib/krb5/krb/rd_error.c index e81727c7c..2c617154b 100644 --- a/src/lib/krb5/krb/rd_error.c +++ b/src/lib/krb5/krb/rd_error.c @@ -40,7 +40,8 @@ */ krb5_error_code KRB5_CALLCONV -krb5_rd_error(krb5_context context, const krb5_data *enc_errbuf, krb5_error **dec_error) +krb5_rd_error(krb5_context context, const krb5_data *enc_errbuf, + krb5_error **dec_error) { if (!krb5_is_krb_error(enc_errbuf)) return KRB5KRB_AP_ERR_MSG_TYPE; diff --git a/src/lib/krb5/krb/rd_priv.c b/src/lib/krb5/krb/rd_priv.c index cf7480779..1e4a0e79a 100644 --- a/src/lib/krb5/krb/rd_priv.c +++ b/src/lib/krb5/krb/rd_priv.c @@ -55,7 +55,11 @@ Returns system errors, integrity errors. */ static krb5_error_code -krb5_rd_priv_basic(krb5_context context, const krb5_data *inbuf, const krb5_keyblock *keyblock, const krb5_address *local_addr, const krb5_address *remote_addr, krb5_pointer i_vector, krb5_replay_data *replaydata, krb5_data *outbuf) +krb5_rd_priv_basic(krb5_context context, const krb5_data *inbuf, + const krb5_keyblock *keyblock, + const krb5_address *local_addr, + const krb5_address *remote_addr, krb5_pointer i_vector, + krb5_replay_data *replaydata, krb5_data *outbuf) { krb5_error_code retval; krb5_priv * privmsg; @@ -149,7 +153,9 @@ cleanup_privmsg:; } krb5_error_code KRB5_CALLCONV -krb5_rd_priv(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_data *outbuf, krb5_replay_data *outdata) +krb5_rd_priv(krb5_context context, krb5_auth_context auth_context, + const krb5_data *inbuf, krb5_data *outbuf, + krb5_replay_data *outdata) { krb5_error_code retval; krb5_keyblock * keyblock; diff --git a/src/lib/krb5/krb/rd_rep.c b/src/lib/krb5/krb/rd_rep.c index 6742d8a03..901de4338 100644 --- a/src/lib/krb5/krb/rd_rep.c +++ b/src/lib/krb5/krb/rd_rep.c @@ -42,7 +42,8 @@ */ krb5_error_code KRB5_CALLCONV -krb5_rd_rep(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_ap_rep_enc_part **repl) +krb5_rd_rep(krb5_context context, krb5_auth_context auth_context, + const krb5_data *inbuf, krb5_ap_rep_enc_part **repl) { krb5_error_code retval; krb5_ap_rep * reply; diff --git a/src/lib/krb5/krb/rd_req.c b/src/lib/krb5/krb/rd_req.c index 9a2f4589d..28f4f9364 100644 --- a/src/lib/krb5/krb/rd_req.c +++ b/src/lib/krb5/krb/rd_req.c @@ -46,14 +46,10 @@ */ krb5_error_code KRB5_CALLCONV -krb5_rd_req(krb5_context context, krb5_auth_context *auth_context, const krb5_data *inbuf, krb5_const_principal server, krb5_keytab keytab, krb5_flags *ap_req_options, krb5_ticket **ticket) - - - - /* XXX do we really need this */ - - - +krb5_rd_req(krb5_context context, krb5_auth_context *auth_context, + const krb5_data *inbuf, krb5_const_principal server, + krb5_keytab keytab, krb5_flags *ap_req_options, + krb5_ticket **ticket) { krb5_error_code retval; krb5_ap_req * request; @@ -85,9 +81,11 @@ krb5_rd_req(krb5_context context, krb5_auth_context *auth_context, const krb5_da /* Get an rcache if necessary. */ if (((*auth_context)->rcache == NULL) && ((*auth_context)->auth_context_flags & KRB5_AUTH_CONTEXT_DO_TIME) -&& server) { + && server) { if ((retval = krb5_get_server_rcache(context, - krb5_princ_component(context,server,0), &(*auth_context)->rcache))) + krb5_princ_component(context, + server,0), + &(*auth_context)->rcache))) goto cleanup_auth_context; } diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index 6f53b11c9..a2b275cbe 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -61,12 +61,13 @@ static krb5_error_code decrypt_authenticator (krb5_context, const krb5_ap_req *, krb5_authenticator **, - int); + int); #define in_clock_skew(date) (labs((date)-currenttime) < context->clockskew) static krb5_error_code -krb5_rd_req_decrypt_tkt_part(krb5_context context, const krb5_ap_req *req, krb5_keytab keytab) +krb5_rd_req_decrypt_tkt_part(krb5_context context, const krb5_ap_req *req, + krb5_keytab keytab) { krb5_error_code retval; krb5_enctype enctype; diff --git a/src/lib/krb5/krb/rd_safe.c b/src/lib/krb5/krb/rd_safe.c index 15dc6dccc..758f9cf9a 100644 --- a/src/lib/krb5/krb/rd_safe.c +++ b/src/lib/krb5/krb/rd_safe.c @@ -47,7 +47,11 @@ returns system errors, integrity errors */ static krb5_error_code -krb5_rd_safe_basic(krb5_context context, const krb5_data *inbuf, const krb5_keyblock *keyblock, const krb5_address *recv_addr, const krb5_address *sender_addr, krb5_replay_data *replaydata, krb5_data *outbuf) +krb5_rd_safe_basic(krb5_context context, const krb5_data *inbuf, + const krb5_keyblock *keyblock, + const krb5_address *recv_addr, + const krb5_address *sender_addr, + krb5_replay_data *replaydata, krb5_data *outbuf) { krb5_error_code retval; krb5_safe * message; @@ -154,7 +158,9 @@ cleanup: } krb5_error_code KRB5_CALLCONV -krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_data *outbuf, krb5_replay_data *outdata) +krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, + const krb5_data *inbuf, krb5_data *outbuf, + krb5_replay_data *outdata) { krb5_error_code retval; krb5_keyblock * keyblock;