X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mech_eap%2Futil_crypt.c;h=9906b8377f0b64ef2bba005c6e44049f8e7d0aeb;hb=93039967aef783f03da45076109db8bbb0e7d7b0;hp=7bb35aa1600dd383cac4e63c9d00ae753812e7c7;hpb=28dcddb8f970a440e1494cdbbd9c271dbf8853ce;p=mech_eap.git diff --git a/mech_eap/util_crypt.c b/mech_eap/util_crypt.c index 7bb35aa..9906b83 100644 --- a/mech_eap/util_crypt.c +++ b/mech_eap/util_crypt.c @@ -315,6 +315,15 @@ gssEapLocateIov(gss_iov_buffer_desc *iov, int iov_count, OM_uint32 type) return p; } +gss_iov_buffer_t +gssEapLocateHeaderIov(gss_iov_buffer_desc *iov, int iov_count, enum gss_eap_token_type toktype) +{ + if (toktype == TOK_TYPE_MIC) + return gssEapLocateIov(iov, iov_count, GSS_IOV_BUFFER_TYPE_MIC_TOKEN); + else + return gssEapLocateIov(iov, iov_count, GSS_IOV_BUFFER_TYPE_HEADER); +} + void gssEapIovMessageLength(gss_iov_buffer_desc *iov, int iov_count,