Ethereal-dev: [Ethereal-dev] GSSAPI GSS_WRAP and GSS_GETMIC token parsing etc

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Richard Sharpe <rsharpe@xxxxxxxxxxxxxxxxx>
Date: Fri, 23 May 2003 11:09:16 -0700 (PDT)
Hi,

Currently packet-spnego contains dissection routines for some of this, and 
they are in the wrong place. (Which I am to blame for, Mea Culpa.)

There is a routine dissect_spnego_krb5_wrap that dissects a GSS_Wrap 
token, but it needs to be callable from a number of places it seems.

One of the issues I see is that it expects to dissect the token ID as part 
of the krb5_wrap routine, but this two byte sequence is usually going to 
be used to recognize what type of token appears in the RFC1964-encoded 
blob.

Can anyone tell me why it is done this way, or supply me with a capture 
where such a decoding is needed? 

If it turns out to be needed, then I will probably have to rip the guts 
out and place them in another routine ...

I also want to fix up the placement of these routines, as they do not 
belong in packet-spnego.c. They probably belong in packet-gssapi.c.

Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com