diff options
author | Luke Howard <lukeh@padl.com> | 2009-09-01 15:49:33 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2009-09-01 15:49:33 +0000 |
commit | c69038780b492769baf8ffe7feacff39bcd95374 (patch) | |
tree | 1108f9bb3729bc6d5c24d3a692d8eae66de9ef45 | |
parent | 625df0c5c3dee77c9ea42fcfc08aa9e50b6937e8 (diff) | |
download | krb5-c69038780b492769baf8ffe7feacff39bcd95374.zip krb5-c69038780b492769baf8ffe7feacff39bcd95374.tar.gz krb5-c69038780b492769baf8ffe7feacff39bcd95374.tar.bz2 |
cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/s4u@22699 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/krb/s4u_creds.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/krb5/krb/s4u_creds.c b/src/lib/krb5/krb/s4u_creds.c index a145787..3f71422 100644 --- a/src/lib/krb5/krb/s4u_creds.c +++ b/src/lib/krb5/krb/s4u_creds.c @@ -421,7 +421,8 @@ verify_s4u2self_reply(krb5_context context, */ if (not_newer) { if (enc_s4u_padata == NULL) { - if (rep_s4u_user->user_id.options & KRB5_S4U_OPTS_USE_REPLY_KEY_USAGE) { + if (rep_s4u_user->user_id.options & + KRB5_S4U_OPTS_USE_REPLY_KEY_USAGE) { code = KRB5_KDCREP_MODIFIED; goto cleanup; } @@ -432,9 +433,11 @@ verify_s4u2self_reply(krb5_context context, goto cleanup; } if (memcmp(enc_s4u_padata->contents, - req_s4u_user->cksum.contents, req_s4u_user->cksum.length) || + req_s4u_user->cksum.contents, + req_s4u_user->cksum.length) || memcmp(&enc_s4u_padata->contents[req_s4u_user->cksum.length], - rep_s4u_user->cksum.contents, rep_s4u_user->cksum.length)) { + rep_s4u_user->cksum.contents, + rep_s4u_user->cksum.length)) { code = KRB5_KDCREP_MODIFIED; goto cleanup; } @@ -831,7 +834,10 @@ krb5_get_credentials_for_proxy(krb5_context context, goto cleanup; } - /* Caller should have set in_creds->client to match evidence ticket client */ + /* + * Caller should have set in_creds->client to match evidence + * ticket client + */ if (!krb5_principal_compare(context, evidence_tkt->enc_part2->client, in_creds->client)) { code = EINVAL; |