From: Luke Howard Date: Fri, 22 Apr 2011 10:58:57 +0000 (+0200) Subject: Merge branch 'master' into tlv-mic X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=ac9b7f930201a4e52221295446b89f781bb42213 Merge branch 'master' into tlv-mic --- ac9b7f930201a4e52221295446b89f781bb42213 diff --cc mech_eap/accept_sec_context.c index 081cca8,cc8702d..17d1020 --- a/mech_eap/accept_sec_context.c +++ b/mech_eap/accept_sec_context.c @@@ -1083,25 -970,11 +1083,25 @@@ eapGssSmAcceptGssReauth(OM_uint32 *mino ctx->flags |= CTX_FLAG_KRB_REAUTH; + /* + * To avoid an additional round trip, we use GSS channel bindings + * to integrity protect the rest of the initiator exchange. This + * does have the disadvantage of making it impossible for the + * acceptor to ignore application channel bindings, behaviour + * which differs from normal Kerberos and GSS-EAP itself. + */ + major = gssEapMakeTokenChannelBindings(minor, ctx, + userChanBindings, + inputToken, + &wireChanBindings); + if (GSS_ERROR(major)) + return major; + major = gssAcceptSecContext(minor, &ctx->reauthCtx, - cred->krbCred, + cred->reauthCred, inputToken, - chanBindings, + &wireChanBindings, &krbInitiator, &mech, outputToken,