X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mech_eap%2Futil_context.c;fp=mech_eap%2Futil_context.c;h=e18edc5a9b6de72e7a547a0b0295557e715f4e0b;hb=503424f95316940eccade0ed6273adfadaea3048;hp=ba0dc87137123776cca92465ef15e7e12161258a;hpb=62b5228cc9172216d9eefda4d4933c99e3e2cdd1;p=mech_eap.orig diff --git a/mech_eap/util_context.c b/mech_eap/util_context.c index ba0dc87..e18edc5 100644 --- a/mech_eap/util_context.c +++ b/mech_eap/util_context.c @@ -328,13 +328,7 @@ gssEapMakeOrVerifyTokenMIC(OM_uint32 *minor, GSSEAP_ASSERT(i < 2 + (3 * tokens->buffers.count)); iov[i].type = GSS_IOV_BUFFER_TYPE_HEADER; - iov[i].buffer.length = 16; - iov[i].buffer.value = tokenMIC->value; - i++; - - iov[i].type = GSS_IOV_BUFFER_TYPE_TRAILER; - iov[i].buffer.length = tokenMIC->length - 16; - iov[i].buffer.value = (unsigned char *)tokenMIC->value + 16; + iov[i].buffer = *tokenMIC; i++; major = gssEapUnwrapOrVerifyMIC(minor, ctx, NULL, NULL,